Merge pull request #39 from cmgustavo/matias/feature/identity
fix top-bar. no test when grunt watch. sidebar for small devices
This commit is contained in:
commit
c3e5582fb8
7 changed files with 85 additions and 26 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
angular.module('copayApp.controllers').controller('HeadController', function($scope, $rootScope, notification, controllerUtils) {
|
||||
|
||||
$scope.username = $rootScope.iden.profile.email;
|
||||
$scope.username = $rootScope.iden ? $rootScope.iden.fullName || $rootScope.iden.email : 'undefined';
|
||||
$scope.hoverMenu = false;
|
||||
|
||||
$scope.hoverIn = function(){
|
||||
|
|
@ -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