mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-05-07 07:56:18 +02:00
feat(about): add function with admin/oper list
user can send message to them at here
This commit is contained in:
@@ -5,16 +5,29 @@
|
||||
.module('about')
|
||||
.controller('AboutController', AboutController);
|
||||
|
||||
AboutController.$inject = ['$scope', 'getStorageLangService', 'MeanTorrentConfig'];
|
||||
AboutController.$inject = ['$scope', 'getStorageLangService', 'MeanTorrentConfig', 'AdminService'];
|
||||
|
||||
function AboutController($scope, getStorageLangService, MeanTorrentConfig) {
|
||||
function AboutController($scope, getStorageLangService, MeanTorrentConfig, AdminService) {
|
||||
var vm = this;
|
||||
vm.lang = getStorageLangService.getLang();
|
||||
vm.blackListConfig = MeanTorrentConfig.meanTorrentConfig.clientBlackList;
|
||||
vm.appConfig = MeanTorrentConfig.meanTorrentConfig.app;
|
||||
vm.announce = MeanTorrentConfig.meanTorrentConfig.announce;
|
||||
|
||||
vm.init = function () {
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* getOperList
|
||||
*/
|
||||
vm.getOperList = function () {
|
||||
AdminService.get({
|
||||
isOper: true,
|
||||
isAdmin: true
|
||||
}, function (data) {
|
||||
vm.operList = data.rows;
|
||||
});
|
||||
};
|
||||
}
|
||||
}());
|
||||
|
||||
Reference in New Issue
Block a user