Move wallet-info to settings. Fix removing last wallet
This commit is contained in:
parent
c0f59adced
commit
5b1463af60
8 changed files with 171 additions and 204 deletions
|
|
@ -218,6 +218,9 @@ Identity.prototype.deleteWallet = function(walletId, cb) {
|
|||
self.storage.removeItem(Wallet.getStorageKey(walletId), function(err) {
|
||||
if (err) return cb(err);
|
||||
self.emitAndKeepAlive('walletDeleted', walletId);
|
||||
if (!self.walletIds.length) {
|
||||
self.emitAndKeepAlive('noWallets')
|
||||
}
|
||||
self.store({
|
||||
noWallets: true
|
||||
}, cb);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue