mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-29 05:35:43 +01:00
23 lines
437 B
JavaScript
23 lines
437 B
JavaScript
|
(function() {
|
||
|
|
||
|
'use strict';
|
||
|
|
||
|
angular
|
||
|
.module('harbor.layout.admin.option')
|
||
|
.controller('AdminOptionController', AdminOptionController);
|
||
|
|
||
|
function AdminOptionController() {
|
||
|
var vm = this;
|
||
|
vm.toggle = false;
|
||
|
vm.toggleAdminOption = toggleAdminOption;
|
||
|
|
||
|
function toggleAdminOption() {
|
||
|
if(vm.toggle) {
|
||
|
vm.toggle = false;
|
||
|
}else{
|
||
|
vm.toggle = true;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
})();
|