fix in no-mnemonics
This commit is contained in:
parent
930c07b338
commit
337dfcf290
1 changed files with 6 additions and 5 deletions
|
|
@ -7,12 +7,12 @@ angular.module('copayApp.controllers').controller('wordsController',
|
||||||
var successMsg = gettext('Backup words deleted');
|
var successMsg = gettext('Backup words deleted');
|
||||||
|
|
||||||
this.done = function() {
|
this.done = function() {
|
||||||
$rootScope.$emit('Local/BackupDone');
|
$rootScope.$emit('Local/BackupDone');
|
||||||
};
|
};
|
||||||
|
|
||||||
this.delete = function() {
|
this.delete = function() {
|
||||||
var fc = profileService.focusedClient;
|
var fc = profileService.focusedClient;
|
||||||
confirmDialog.show(msg,function(ok){
|
confirmDialog.show(msg, function(ok) {
|
||||||
if (ok) {
|
if (ok) {
|
||||||
fc.clearMnemonic();
|
fc.clearMnemonic();
|
||||||
profileService.updateCredentialsFC(function() {
|
profileService.updateCredentialsFC(function() {
|
||||||
|
|
@ -26,9 +26,10 @@ angular.module('copayApp.controllers').controller('wordsController',
|
||||||
var fc = profileService.focusedClient;
|
var fc = profileService.focusedClient;
|
||||||
var words = fc.getMnemonic();
|
var words = fc.getMnemonic();
|
||||||
|
|
||||||
if (words)
|
if (words) {
|
||||||
this.mnemonicWords = words.split(/[\u3000\s]+/);
|
this.mnemonicWords = words.split(/[\u3000\s]+/);
|
||||||
|
this.mnemonicHasPassphrase = fc.mnemonicHasPassphrase();
|
||||||
|
this.useIdeograms = words.indexOf("\u3000") >= 0;
|
||||||
|
}
|
||||||
|
|
||||||
this.mnemonicHasPassphrase = fc.mnemonicHasPassphrase();
|
|
||||||
this.useIdeograms = words.indexOf("\u3000") >= 0;
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue