diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-09-15 19:35:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-15 19:35:44 -0400 |
commit | f997f017422bba2527e620000e3a938b916f25ac (patch) | |
tree | 659653476f599a437e1d16132ceed28ecbdf59b7 /ext/bg/js/settings/dictionary-import-controller.js | |
parent | 8d2847756271a1b4eb06a27b044b4096bd21f55c (diff) |
Dictionary controller refactor (#831)
* Create new DictionaryController
* Update input disabling when modifying the database
Diffstat (limited to 'ext/bg/js/settings/dictionary-import-controller.js')
-rw-r--r-- | ext/bg/js/settings/dictionary-import-controller.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/bg/js/settings/dictionary-import-controller.js b/ext/bg/js/settings/dictionary-import-controller.js index cce695d0..dd4889dc 100644 --- a/ext/bg/js/settings/dictionary-import-controller.js +++ b/ext/bg/js/settings/dictionary-import-controller.js @@ -304,8 +304,9 @@ class DictionaryImportController { _setButtonsEnabled(value) { value = !value; - this._purgeButton.disabled = value; - this._importFileButton.disabled = value; + for (const node of document.querySelectorAll('.dictionary-modifying-input')) { + node.disabled = value; + } } async _getPreparedDictionaryDatabase() { |