Fix the "Prefix wildcard searches supported" toggle having incorrect state (#1650)

This commit is contained in:
toasted-nutbread 2021-05-02 10:15:47 -04:00 committed by GitHub
parent 46f60619d5
commit a8b602834f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);