Highlight active section on sidebar

This commit is contained in:
Yemel Jardi 2014-07-18 15:23:01 -03:00
parent 0ffbd585f8
commit 4f57c3f696
1 changed files with 4 additions and 0 deletions

View File

@ -45,6 +45,10 @@ angular.module('copayApp.controllers').controller('SidebarController',
}
};
$scope.isActive = function(item) {
return item.link && item.link == $location.path().split('/')[1];
};
function logout() {
var w = $rootScope.wallet;
if (w) {