harbor/static/resources/js/layout/details/details.controller.js
2016-06-26 03:12:17 +08:00

25 lines
474 B
JavaScript

(function() {
'use strict';
angular
.module('harbor.details')
.controller('DetailsController', DetailsController);
DetailsController.$inject = ['$scope'];
function DetailsController($scope) {
var vm = this;
vm.publicity = false;
vm.isProjectMember = false;
vm.togglePublicity = togglePublicity;
vm.target = 'repositories';
function togglePublicity(e) {
vm.publicity = e.publicity;
}
}
})();