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' controllerAs: 'vm'
}) })
.otherwise({ .otherwise({
redirectTo: '/' redirectTo: '/repositories'
}); });
} }

View File

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