Merge pull request #2310 from cmgustavo/ux/wallet-info01

Removes "Manage wallets" and moves info to "Settings"
This commit is contained in:
Matias Alejo Garcia 2015-01-16 10:09:13 -03:00
commit 373f12c2a0
19 changed files with 288 additions and 310 deletions

View file

@ -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);