aboutsummaryrefslogtreecommitdiff
path: root/ext/js/pages/settings/dictionary-controller.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2024-02-19 07:30:17 -0500
committerGitHub <noreply@github.com>2024-02-19 12:30:17 +0000
commit2da866f982930c76d2317a3be426410683ecf5a2 (patch)
treee77ce545177ba398068cb63037096a56dea04e2c /ext/js/pages/settings/dictionary-controller.js
parent65fa65fc7765bc9a6557d3ce6f8bdcef5b5e0cf7 (diff)
Update eslint rules (#710)
Diffstat (limited to 'ext/js/pages/settings/dictionary-controller.js')
-rw-r--r--ext/js/pages/settings/dictionary-controller.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/js/pages/settings/dictionary-controller.js b/ext/js/pages/settings/dictionary-controller.js
index 66ff0923..a6760268 100644
--- a/ext/js/pages/settings/dictionary-controller.js
+++ b/ext/js/pages/settings/dictionary-controller.js
@@ -149,7 +149,7 @@ class DictionaryEntry {
_onEnabledChanged(e) {
const {detail: {value}} = e;
this._titleContainer.dataset.enabled = `${value}`;
- this._dictionaryController.updateDictionariesEnabled();
+ void this._dictionaryController.updateDictionariesEnabled();
}
/** */
@@ -255,7 +255,7 @@ class DictionaryEntry {
* @param {number} offset
*/
_move(offset) {
- this._dictionaryController.moveDictionaryOptions(this._index, this._index + offset);
+ void this._dictionaryController.moveDictionaryOptions(this._index, this._index + offset);
}
/**
@@ -598,7 +598,7 @@ export class DictionaryController {
_onOptionsChanged({options}) {
this._updateDictionariesEnabledWarnings(options);
if (this._dictionaries !== null) {
- this._updateEntries();
+ void this._updateEntries();
}
}
@@ -620,7 +620,7 @@ export class DictionaryController {
const allCheckbox = /** @type {HTMLInputElement} */ (this._allCheckbox);
const value = allCheckbox.checked;
allCheckbox.checked = !value;
- this._setAllDictionariesEnabled(value);
+ void this._setAllDictionariesEnabled(value);
}
/** */
@@ -718,7 +718,7 @@ export class DictionaryController {
if (typeof title !== 'string') { return; }
delete modal.node.dataset.dictionaryTitle;
- this._deleteDictionary(title);
+ void this._deleteDictionary(title);
}
/**
@@ -726,7 +726,7 @@ export class DictionaryController {
*/
_onCheckIntegrityButtonClick(e) {
e.preventDefault();
- this._checkIntegrity();
+ void this._checkIntegrity();
}
/** */
@@ -743,7 +743,7 @@ export class DictionaryController {
if (!Number.isFinite(target) || !Number.isFinite(indexNumber) || indexNumber === target) { return; }
- this.moveDictionaryOptions(indexNumber, target);
+ void this.moveDictionaryOptions(indexNumber, target);
}
/**
@@ -916,7 +916,7 @@ export class DictionaryController {
*/
async _deleteDictionaryInternal(dictionaryTitle, onProgress) {
await new DictionaryWorker().deleteDictionary(dictionaryTitle, onProgress);
- this._settingsController.application.api.triggerDatabaseUpdated('dictionary', 'delete');
+ void this._settingsController.application.api.triggerDatabaseUpdated('dictionary', 'delete');
}
/**