mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-28 13:15:33 +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;
|
|
}
|
|
|
|
})(); |