From e98c7e68cc229e94682ee2e22db602bcfb602c59 Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Tue, 28 Oct 2014 11:12:46 -0300 Subject: [PATCH] retrieving email directly from identity instance --- js/controllers/head.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/js/controllers/head.js b/js/controllers/head.js index 47b922c95..cf40580f9 100644 --- a/js/controllers/head.js +++ b/js/controllers/head.js @@ -1,15 +1,14 @@ 'use strict'; angular.module('copayApp.controllers').controller('HeadController', function($scope, $rootScope, $filter, notification, controllerUtils) { - - $scope.username = $rootScope.iden ? $rootScope.iden.fullName || $rootScope.iden.email : 'undefined'; + $scope.username = $rootScope.iden.getName(); $scope.hoverMenu = false; - $scope.hoverIn = function(){ + $scope.hoverIn = function() { this.hoverMenu = true; }; - $scope.hoverOut = function(){ + $scope.hoverOut = function() { this.hoverMenu = false; }; @@ -53,4 +52,3 @@ angular.module('copayApp.controllers').controller('HeadController', function($sc }); } }); -