aboutsummaryrefslogtreecommitdiff
path: root/ext/js/pages/settings/scan-inputs-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/scan-inputs-controller.js
parent65fa65fc7765bc9a6557d3ce6f8bdcef5b5e0cf7 (diff)
Update eslint rules (#710)
Diffstat (limited to 'ext/js/pages/settings/scan-inputs-controller.js')
-rw-r--r--ext/js/pages/settings/scan-inputs-controller.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/js/pages/settings/scan-inputs-controller.js b/ext/js/pages/settings/scan-inputs-controller.js
index 144eae9f..fcaad589 100644
--- a/ext/js/pages/settings/scan-inputs-controller.js
+++ b/ext/js/pages/settings/scan-inputs-controller.js
@@ -51,7 +51,7 @@ export class ScanInputsController {
this._settingsController.on('scanInputsChanged', this._onScanInputsChanged.bind(this));
this._settingsController.on('optionsChanged', this._onOptionsChanged.bind(this));
- this.refresh();
+ await this.refresh();
}
/**
@@ -67,7 +67,7 @@ export class ScanInputsController {
this._entries[i].index = i;
}
this._updateCounts();
- this._modifyProfileSettings([{
+ void this._modifyProfileSettings([{
action: 'splice',
path: 'scanning.inputs',
start: index,
@@ -113,7 +113,7 @@ export class ScanInputsController {
*/
_onScanInputsChanged({source}) {
if (source === this) { return; }
- this.refresh();
+ void this.refresh();
}
/**
@@ -144,7 +144,7 @@ export class ScanInputsController {
const scanningInput = ScanInputsController.createDefaultMouseInput('', '');
this._addOption(index, scanningInput);
this._updateCounts();
- this._modifyProfileSettings([{
+ void this._modifyProfileSettings([{
action: 'splice',
path: 'scanning.inputs',
start: index,
@@ -315,7 +315,7 @@ class ScanInputField {
*/
_onIncludeValueChange({modifiers}) {
const modifiers2 = this._joinModifiers(modifiers);
- this._parent.setProperty(this._index, 'include', modifiers2, true);
+ void this._parent.setProperty(this._index, 'include', modifiers2, true);
}
/**
@@ -323,7 +323,7 @@ class ScanInputField {
*/
_onExcludeValueChange({modifiers}) {
const modifiers2 = this._joinModifiers(modifiers);
- this._parent.setProperty(this._index, 'exclude', modifiers2, true);
+ void this._parent.setProperty(this._index, 'exclude', modifiers2, true);
}
/**
@@ -406,7 +406,7 @@ class ScanInputField {
if (this._node !== null) {
this._node.dataset.showAdvanced = `${showAdvanced}`;
}
- this._parent.setProperty(this._index, 'options.showAdvanced', showAdvanced, false);
+ void this._parent.setProperty(this._index, 'options.showAdvanced', showAdvanced, false);
}
/**