mirror of https://github.com/BTCPrivate/copay.git
fix button selection
This commit is contained in:
parent
b89e7a2ff3
commit
e95f9b176e
|
@ -9,6 +9,7 @@ angular.module('copayApp.controllers').controller('backupController',
|
|||
var mnemonic = null;
|
||||
|
||||
function init() {
|
||||
resetAllButtons();
|
||||
customWords = [];
|
||||
mnemonic = 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) {
|
||||
document.getElementById(word).disabled = false;
|
||||
lodash.remove(customWords, function(v) {
|
||||
|
|
Loading…
Reference in New Issue