mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-04 16:13:35 +01:00
54 lines
1.0 KiB
JavaScript
54 lines
1.0 KiB
JavaScript
|
(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;
|
||
|
}
|
||
|
|
||
|
})();
|