updates for detail config in UI

This commit is contained in:
kunw 2016-04-20 14:12:53 +08:00
parent 6ae156f902
commit 046d9b0f47
2 changed files with 5 additions and 4 deletions

View File

@ -24,7 +24,7 @@
controllerAs: 'vm'
})
.otherwise({
redirectTo: '/'
redirectTo: '/repositories'
});
}

View File

@ -10,10 +10,11 @@
function SwitchPaneProjectsController($scope) {
var vm = this;
$scope.$on('isOpen', function(e, d){
vm.isOpen = d;
console.log('vm.isOpen:' + vm.isOpen);
$scope.$on('isOpen', function(e, val){
vm.isOpen = val;
});
$scope.$watch('vm.selectedProject', function(current, origin) {
vm.projectName = current.name;
});