diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-05-02 10:15:47 -0400 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-05-08 15:25:06 -0400 |
commit | 881170cf5a2a5923460e6b14b59daa3ca011a469 (patch) | |
tree | 9b671f6adaa057fe981d103774c38c19335d5ba0 /ext | |
parent | 919c59a77693d1b366dfaf61f7d6ecb55a2f2343 (diff) |
Fix the "Prefix wildcard searches supported" toggle having incorrect state (#1650)
Diffstat (limited to 'ext')
-rw-r--r-- | ext/js/pages/settings/dictionary-controller.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/js/pages/settings/dictionary-controller.js b/ext/js/pages/settings/dictionary-controller.js index dcbe0988..6f37798c 100644 --- a/ext/js/pages/settings/dictionary-controller.js +++ b/ext/js/pages/settings/dictionary-controller.js @@ -117,7 +117,7 @@ class DictionaryEntry { } _showDetails() { - const {title, revision, version} = this._dictionaryInfo; + const {title, revision, version, prefixWildcardsSupported} = this._dictionaryInfo; const modal = this._dictionaryController.modalController.getModal('dictionary-details'); @@ -125,6 +125,7 @@ class DictionaryEntry { modal.node.querySelector('.dictionary-version').textContent = `rev.${revision}`; modal.node.querySelector('.dictionary-outdated-notification').hidden = (version >= 3); modal.node.querySelector('.dictionary-counts').textContent = this._counts !== null ? JSON.stringify(this._counts, null, 4) : ''; + modal.node.querySelector('.dictionary-prefix-wildcard-searches-supported').checked = prefixWildcardsSupported; this._setupDetails(modal.node.querySelector('.dictionary-details-table')); modal.setVisible(true); |