Do not refresh if the same wallet is selected from sidebar
This commit is contained in:
parent
3b24b2bd48
commit
fcc3a2259d
2 changed files with 4 additions and 3 deletions
|
|
@ -24,9 +24,10 @@ angular.module('copayApp.controllers').controller('sidebarController',
|
|||
profileService.signout();
|
||||
};
|
||||
|
||||
self.switchWallet = function(wid) {
|
||||
self.switchWallet = function(selectedWalletId, currentWalletId) {
|
||||
if (selectedWalletId == currentWalletId) return;
|
||||
self.walletSelection = false;
|
||||
profileService.setAndStoreFocus(wid, function() {
|
||||
profileService.setAndStoreFocus(selectedWalletId, function() {
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue