aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/settings/dictionary-import-controller.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-09-15 19:35:44 -0400
committerGitHub <noreply@github.com>2020-09-15 19:35:44 -0400
commitf997f017422bba2527e620000e3a938b916f25ac (patch)
tree659653476f599a437e1d16132ceed28ecbdf59b7 /ext/bg/js/settings/dictionary-import-controller.js
parent8d2847756271a1b4eb06a27b044b4096bd21f55c (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.js5
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() {