harbor/static/ng/resources/js/components/system-management/configuration.directive.js

54 lines
1.0 KiB
JavaScript
Raw Normal View History

(function() {
'use strict';
angular
.module('harbor.system.management')
.directive('configuration', configuration);
ConfigurationController.$inject = [];
function ConfigurationController() {
var vm = this;
vm.registrationOptions = [
{
'name': 'on',
'value': true
},
{
'name': 'off',
'value': false
}
];
vm.currentRegistration = {
'name': 'on',
'value': true
};
vm.changeSettings = changeSettings;
vm.selectRegistration = selectRegistration;
function selectRegistration() {
}
function changeSettings(system) {
console.log(system);
}
}
function configuration() {
var directive = {
'restrict': 'E',
'templateUrl': '/static/ng/resources/js/components/system-management/configuration.directive.html',
'scope': true,
'controller': ConfigurationController,
'controllerAs': 'vm',
'bindToController': true
};
return directive;
}
})();