fixes backup flag in ledger

This commit is contained in:
Matias Alejo Garcia 2015-09-14 10:12:45 -03:00
commit 7d7a533bd5
2 changed files with 8 additions and 5 deletions

View file

@ -110,8 +110,6 @@ angular.module('copayApp.controllers').controller('createController',
if (opts.mnemonic || opts.externalSource || opts.extendedPrivateKey) {
if (opts.n == 1) {
$rootScope.$emit('Local/WalletImported', walletId);
} else {
$rootScope.$emit('Local/BackupDone', walletId);
}
}
go.walletHome();

View file

@ -110,10 +110,15 @@ angular.module('copayApp.controllers').controller('indexController', function($r
self.updateAlias();
self.initGlidera();
storageService.getBackupFlag(self.walletId, function(err, val) {
self.needsBackup = self.network == 'testnet' ? false : !val;
if (fc.isPrivKeyExternal()) {
self.needsBackup = false;
self.openWallet();
});
} else {
storageService.getBackupFlag(self.walletId, function(err, val) {
self.needsBackup = self.network == 'testnet' ? false : !val;
self.openWallet();
});
}
});
};