aboutsummaryrefslogtreecommitdiff
path: root/ext/js/pages/settings/secondary-search-dictionary-controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/pages/settings/secondary-search-dictionary-controller.js')
-rw-r--r--ext/js/pages/settings/secondary-search-dictionary-controller.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/js/pages/settings/secondary-search-dictionary-controller.js b/ext/js/pages/settings/secondary-search-dictionary-controller.js
index 8ffd9a9b..fb64adf5 100644
--- a/ext/js/pages/settings/secondary-search-dictionary-controller.js
+++ b/ext/js/pages/settings/secondary-search-dictionary-controller.js
@@ -31,6 +31,7 @@ class SecondarySearchDictionaryController {
yomichan.on('databaseUpdated', this._onDatabaseUpdated.bind(this));
this._settingsController.on('optionsChanged', this._onOptionsChanged.bind(this));
+ this._settingsController.on('dictionarySettingsReordered', this._onDictionarySettingsReordered.bind(this));
}
// Private
@@ -84,4 +85,9 @@ class SecondarySearchDictionaryController {
const {detail: {value}} = e;
node.dataset.enabled = `${value}`;
}
+
+ async _onDictionarySettingsReordered() {
+ const options = await this._settingsController.getOptions();
+ this._onOptionsChanged({options});
+ }
} \ No newline at end of file