aboutsummaryrefslogtreecommitdiff
path: root/ext/js/pages/settings/profile-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/profile-controller.js
parent65fa65fc7765bc9a6557d3ce6f8bdcef5b5e0cf7 (diff)
Update eslint rules (#710)
Diffstat (limited to 'ext/js/pages/settings/profile-controller.js')
-rw-r--r--ext/js/pages/settings/profile-controller.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/ext/js/pages/settings/profile-controller.js b/ext/js/pages/settings/profile-controller.js
index a82a4b4e..9d4ed33b 100644
--- a/ext/js/pages/settings/profile-controller.js
+++ b/ext/js/pages/settings/profile-controller.js
@@ -98,7 +98,7 @@ export class ProfileController {
this._profileConditionsUI.on('conditionGroupCountChanged', this._onConditionGroupCountChanged.bind(this));
this._settingsController.on('optionsChanged', this._onOptionsChanged.bind(this));
- this._onOptionsChanged();
+ void this._onOptionsChanged();
}
/**
@@ -376,7 +376,7 @@ export class ProfileController {
this._profileConditionsUI.cleanup();
this._profileConditionsIndex = profileIndex;
- this._profileConditionsUI.prepare(profileIndex);
+ void this._profileConditionsUI.prepare(profileIndex);
if (this._profileConditionsProfileName !== null) {
this._profileConditionsProfileName.textContent = profile.name;
}
@@ -403,7 +403,7 @@ export class ProfileController {
this._profileConditionsUI.cleanup();
const conditionsProfile = this._getProfile(this._profileConditionsIndex !== null ? this._profileConditionsIndex : settingsProfileIndex);
if (conditionsProfile !== null) {
- this._profileConditionsUI.prepare(settingsProfileIndex);
+ void this._profileConditionsUI.prepare(settingsProfileIndex);
}
// Udpate profile entries
@@ -425,7 +425,7 @@ export class ProfileController {
const element = /** @type {HTMLSelectElement} */ (e.currentTarget);
const value = this._tryGetValidProfileIndex(element.value);
if (value === null) { return; }
- this.setDefaultProfile(value);
+ void this.setDefaultProfile(value);
}
/**
@@ -440,7 +440,7 @@ export class ProfileController {
/** */
_onAdd() {
- this.duplicateProfile(this._settingsController.profileIndex);
+ void this.duplicateProfile(this._settingsController.profileIndex);
}
/** */
@@ -454,7 +454,7 @@ export class ProfileController {
const validProfileIndex = this._tryGetValidProfileIndex(profileIndex);
if (validProfileIndex === null) { return; }
- this.deleteProfile(validProfileIndex);
+ void this.deleteProfile(validProfileIndex);
}
/** */
@@ -471,7 +471,7 @@ export class ProfileController {
const sourceProfileIndex = this._tryGetValidProfileIndex(/** @type {HTMLSelectElement} */ (this._profileCopySourceSelect).value);
if (sourceProfileIndex === null) { return; }
- this.copyProfile(sourceProfileIndex, validDestinationProfileIndex);
+ void this.copyProfile(sourceProfileIndex, validDestinationProfileIndex);
}
/**
@@ -738,7 +738,7 @@ class ProfileEntry {
_onIsDefaultRadioChange(e) {
const element = /** @type {HTMLInputElement} */ (e.currentTarget);
if (!element.checked) { return; }
- this._profileController.setDefaultProfile(this._index);
+ void this._profileController.setDefaultProfile(this._index);
}
/**
@@ -747,7 +747,7 @@ class ProfileEntry {
_onNameInputInput(e) {
const element = /** @type {HTMLInputElement} */ (e.currentTarget);
const name = element.value;
- this._profileController.setProfileName(this._index, name);
+ void this._profileController.setProfileName(this._index, name);
}
/** */
@@ -773,10 +773,10 @@ class ProfileEntry {
_onMenuClose(e) {
switch (e.detail.action) {
case 'moveUp':
- this._profileController.moveProfile(this._index, -1);
+ void this._profileController.moveProfile(this._index, -1);
break;
case 'moveDown':
- this._profileController.moveProfile(this._index, 1);
+ void this._profileController.moveProfile(this._index, 1);
break;
case 'copyFrom':
this._profileController.openCopyProfileModal(this._index);
@@ -785,7 +785,7 @@ class ProfileEntry {
this._profileController.openProfileConditionsModal(this._index);
break;
case 'duplicate':
- this._profileController.duplicateProfile(this._index);
+ void this._profileController.duplicateProfile(this._index);
break;
case 'delete':
this._profileController.openDeleteProfileModal(this._index);