retrieving email directly from identity instance
This commit is contained in:
parent
e80dda1325
commit
e98c7e68cc
1 changed files with 3 additions and 5 deletions
|
|
@ -1,15 +1,14 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('HeadController', function($scope, $rootScope, $filter, notification, controllerUtils) {
|
angular.module('copayApp.controllers').controller('HeadController', function($scope, $rootScope, $filter, notification, controllerUtils) {
|
||||||
|
$scope.username = $rootScope.iden.getName();
|
||||||
$scope.username = $rootScope.iden ? $rootScope.iden.fullName || $rootScope.iden.email : 'undefined';
|
|
||||||
$scope.hoverMenu = false;
|
$scope.hoverMenu = false;
|
||||||
|
|
||||||
$scope.hoverIn = function(){
|
$scope.hoverIn = function() {
|
||||||
this.hoverMenu = true;
|
this.hoverMenu = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.hoverOut = function(){
|
$scope.hoverOut = function() {
|
||||||
this.hoverMenu = false;
|
this.hoverMenu = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -53,4 +52,3 @@ angular.module('copayApp.controllers').controller('HeadController', function($sc
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue