mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-03-09 21:50:30 +01:00
26 lines
648 B
JavaScript
26 lines
648 B
JavaScript
(function () {
|
|
'use strict';
|
|
|
|
angular
|
|
.module('systems')
|
|
.controller('SystemConfigController', SystemConfigController);
|
|
|
|
SystemConfigController.$inject = ['$scope', '$state', '$timeout', '$translate', 'Authentication', 'SystemsService'];
|
|
|
|
function SystemConfigController($scope, $state, $timeout, $translate, Authentication, SystemsService) {
|
|
var vm = this;
|
|
vm.user = Authentication.user;
|
|
|
|
/**
|
|
* getConfigFile
|
|
*/
|
|
vm.getConfigFile = function () {
|
|
SystemsService.getSystemConfig(function (res) {
|
|
vm.systemConfigContent = res.configContent;
|
|
}, function (err) {
|
|
|
|
});
|
|
};
|
|
}
|
|
}());
|