Sidebar support for small devices
This commit is contained in:
parent
567363a8b8
commit
c8614b76c2
6 changed files with 84 additions and 21 deletions
|
|
@ -48,6 +48,9 @@ angular.module('copayApp.controllers').controller('HeadController', function($sc
|
|||
$rootScope.$watch('title', function(newTitle, oldTitle) {
|
||||
$scope.title = newTitle;
|
||||
});
|
||||
$rootScope.$on('signout', function() {
|
||||
$scope.signout();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -35,6 +35,10 @@ angular.module('copayApp.controllers').controller('SidebarController', function(
|
|||
}
|
||||
};
|
||||
|
||||
$scope.signout = function() {
|
||||
$scope.$emit('signout');
|
||||
};
|
||||
|
||||
$scope.isActive = function(item) {
|
||||
return item.link && item.link == $location.path().split('/')[1];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue