fix button selection
This commit is contained in:
parent
b89e7a2ff3
commit
e95f9b176e
1 changed files with 9 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ angular.module('copayApp.controllers').controller('backupController',
|
||||||
var mnemonic = null;
|
var mnemonic = null;
|
||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
|
resetAllButtons();
|
||||||
customWords = [];
|
customWords = [];
|
||||||
mnemonic = null;
|
mnemonic = null;
|
||||||
self.xPrivKey = null;
|
self.xPrivKey = null;
|
||||||
|
|
@ -141,6 +142,14 @@ angular.module('copayApp.controllers').controller('backupController',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function resetAllButtons() {
|
||||||
|
var node = document.getElementById('addWord');
|
||||||
|
node.innerHTML = '';
|
||||||
|
lodash.each(self.mnemonicWords, function(d) {
|
||||||
|
document.getElementById(d).disabled = false;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
self.enableButton = function(word) {
|
self.enableButton = function(word) {
|
||||||
document.getElementById(word).disabled = false;
|
document.getElementById(word).disabled = false;
|
||||||
lodash.remove(customWords, function(v) {
|
lodash.remove(customWords, function(v) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue