fixes backup flag in ledger
This commit is contained in:
parent
7d4fee4aef
commit
7d7a533bd5
2 changed files with 8 additions and 5 deletions
|
|
@ -110,8 +110,6 @@ angular.module('copayApp.controllers').controller('createController',
|
||||||
if (opts.mnemonic || opts.externalSource || opts.extendedPrivateKey) {
|
if (opts.mnemonic || opts.externalSource || opts.extendedPrivateKey) {
|
||||||
if (opts.n == 1) {
|
if (opts.n == 1) {
|
||||||
$rootScope.$emit('Local/WalletImported', walletId);
|
$rootScope.$emit('Local/WalletImported', walletId);
|
||||||
} else {
|
|
||||||
$rootScope.$emit('Local/BackupDone', walletId);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
go.walletHome();
|
go.walletHome();
|
||||||
|
|
|
||||||
|
|
@ -110,10 +110,15 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
||||||
self.updateAlias();
|
self.updateAlias();
|
||||||
self.initGlidera();
|
self.initGlidera();
|
||||||
|
|
||||||
storageService.getBackupFlag(self.walletId, function(err, val) {
|
if (fc.isPrivKeyExternal()) {
|
||||||
self.needsBackup = self.network == 'testnet' ? false : !val;
|
self.needsBackup = false;
|
||||||
self.openWallet();
|
self.openWallet();
|
||||||
});
|
} else {
|
||||||
|
storageService.getBackupFlag(self.walletId, function(err, val) {
|
||||||
|
self.needsBackup = self.network == 'testnet' ? false : !val;
|
||||||
|
self.openWallet();
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue