Merge pull request #3438 from cmgustavo/bug/backup-flag
Fix backup flag
This commit is contained in:
commit
14504ab9b3
1 changed files with 5 additions and 3 deletions
|
|
@ -12,7 +12,6 @@ angular.module('copayApp.controllers').controller('wordsController',
|
||||||
if (fc.isPrivKeyEncrypted()) self.credentialsEncrypted = true;
|
if (fc.isPrivKeyEncrypted()) self.credentialsEncrypted = true;
|
||||||
else {
|
else {
|
||||||
setWords(fc.getMnemonic());
|
setWords(fc.getMnemonic());
|
||||||
$rootScope.$emit('Local/BackupDone');
|
|
||||||
}
|
}
|
||||||
if (fc.credentials && !fc.credentials.mnemonicEncrypted && !fc.credentials.mnemonic) {
|
if (fc.credentials && !fc.credentials.mnemonicEncrypted && !fc.credentials.mnemonic) {
|
||||||
self.deleted = true;
|
self.deleted = true;
|
||||||
|
|
@ -20,8 +19,11 @@ angular.module('copayApp.controllers').controller('wordsController',
|
||||||
|
|
||||||
self.toggle = function() {
|
self.toggle = function() {
|
||||||
self.error = "";
|
self.error = "";
|
||||||
if (!self.credentialsEncrypted)
|
if (!self.credentialsEncrypted) {
|
||||||
|
if (!self.show)
|
||||||
|
$rootScope.$emit('Local/BackupDone');
|
||||||
self.show = !self.show;
|
self.show = !self.show;
|
||||||
|
}
|
||||||
|
|
||||||
if (self.credentialsEncrypted)
|
if (self.credentialsEncrypted)
|
||||||
self.passwordRequest();
|
self.passwordRequest();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue