feat(forums): add forums admin list view side-overlay

This commit is contained in:
OldHawk
2017-07-03 18:27:07 +08:00
parent 0085271d71
commit a7eb5eef3f
4 changed files with 40 additions and 4 deletions

View File

@@ -5,18 +5,29 @@
.module('forums')
.controller('ForumsController', ForumsController);
ForumsController.$inject = ['$scope', '$translate', 'Authentication', 'MeanTorrentConfig', 'ForumsAdminService'];
ForumsController.$inject = ['$scope', '$translate', 'Authentication', 'MeanTorrentConfig', 'ForumsAdminService', 'SideOverlay'];
function ForumsController($scope, $translate, Authentication, MeanTorrentConfig, ForumsAdminService) {
function ForumsController($scope, $translate, Authentication, MeanTorrentConfig, ForumsAdminService, SideOverlay) {
var vm = this;
vm.forumsConfig = MeanTorrentConfig.meanTorrentConfig.forumsConfig;
vm.user = Authentication.user;
/**
* init
*/
vm.init = function () {
ForumsAdminService.query({}, function (items) {
vm.forums = items;
console.log(items);
});
};
/**
* openSideOverlay
* @param evt
*/
vm.openSideOverlay = function (evt) {
SideOverlay.open(evt, 'popupSlide');
};
}
}());