Signout link is now in the navbar

This commit is contained in:
Gustavo Cortez 2014-04-15 14:02:45 -03:00
commit db4da73117
2 changed files with 5 additions and 16 deletions

View file

@ -22,18 +22,14 @@ angular.module('copay.header').controller('HeaderController',
'title': 'Backup',
'icon': 'fi-archive',
'link': '#/backup'
}, {
'title': 'signout',
'icon': 'fi-power',
'link': '#/signout'
}]
}];
if (!$rootScope.peerId) {
$location.path('signin');
}
$scope.isActive = function(item) {
if (item.link.replace('#','') == $location.path()) {
if (item.link && item.link.replace('#','') == $location.path()) {
return true;
}
return false;
@ -44,8 +40,6 @@ angular.module('copay.header').controller('HeaderController',
};
$scope.signout = function() {
console.log('[header.js.37:signout:]'); //TODO
Network.disconnect(function() {
console.log('[header.js.41] disconnect CB'); //TODO
$location.path('signin');