harbor/static/ng/resources/js/layout/details/details.controller.js

28 lines
704 B
JavaScript
Raw Normal View History

2016-04-19 19:20:07 +02:00
(function() {
'use strict';
angular
.module('harbor.details')
.controller('DetailsController', DetailsController);
2016-04-28 19:36:39 +02:00
2016-05-04 12:42:05 +02:00
DetailsController.$inject = ['$scope', '$location', '$routeParams'];
2016-04-19 19:20:07 +02:00
2016-05-04 12:42:05 +02:00
function DetailsController($scope, $location, $routeParams) {
2016-04-19 19:20:07 +02:00
var vm = this;
vm.isOpen = false;
2016-05-04 12:42:05 +02:00
vm.publicity = false;
vm.isProjectMember = true;
2016-05-01 19:46:50 +02:00
vm.closeRetrievePane = closeRetrievePane;
2016-05-04 12:42:05 +02:00
vm.togglePublicity = togglePublicity;
2016-04-19 19:20:07 +02:00
function closeRetrievePane() {
$scope.$broadcast('isOpen', false);
}
2016-05-04 12:42:05 +02:00
function togglePublicity(e) {
vm.publicity = e.publicity;
console.log('current project publicity:' + vm.publicity);
}
2016-04-19 19:20:07 +02:00
}
})();