Files
meanTorrent/modules/users/client/controllers/settings/settings.client.controller.js
OldHawk 063b7ba244 feat(users): add sign up open/closed function
if sign up is open, all user can free register
otherwise, sign up is closed, and show tooltip message to user
2017-06-05 14:30:03 +08:00

17 lines
408 B
JavaScript

(function () {
'use strict';
angular
.module('users')
.controller('SettingsController', SettingsController);
SettingsController.$inject = ['$scope', 'Authentication', 'MeanTorrentConfig'];
function SettingsController($scope, Authentication, MeanTorrentConfig) {
var vm = this;
vm.user = Authentication.user;
vm.signConfig = MeanTorrentConfig.meanTorrentConfig.sign;
}
}());