switch between wallets in profile working
This commit is contained in:
parent
ff44897922
commit
ac491d10b0
19 changed files with 293 additions and 179 deletions
|
|
@ -154,13 +154,18 @@ angular.module('copayApp.services')
|
|||
});
|
||||
};
|
||||
|
||||
|
||||
root.unbindWallet = function($scope) {
|
||||
var w =$rootScope.wallet;
|
||||
w.removeAllListeners();
|
||||
};
|
||||
|
||||
root.bindWallet = function(w, $scope) {
|
||||
root.setupRootVariables();
|
||||
root.installWalletHandlers(w, $scope);
|
||||
root.updateAddressList();
|
||||
notification.enableHtml5Mode(); // for chrome: if support, enable it
|
||||
w.netStart();
|
||||
|
||||
};
|
||||
|
||||
// TODO movie this to wallet
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue