Signout link is now in the navbar
This commit is contained in:
parent
d7dff5b5d2
commit
db4da73117
2 changed files with 5 additions and 16 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue