Do not refresh if the same wallet is selected from sidebar

This commit is contained in:
Gustavo Maximiliano Cortez 2015-06-12 15:00:51 -03:00
commit fcc3a2259d
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
2 changed files with 4 additions and 3 deletions

View file

@ -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() {
});
};