Skip to content

Commit

Permalink
Apply npm run lint:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HashidaTKS committed Sep 24, 2024
1 parent 6e3490e commit 19b94c9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/web/dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,27 +27,27 @@ window.onCheckAllTrusted = () => {
$("#trusted-domains fluent-checkbox.check-target").prop("checked", true);
const hasUnchecked = checkTargetLength !== checkedTargetLength + toBeCheckedNumber;
$("#ok-button").prop("disabled", hasUnchecked);
}
};

// eslint-disable-next-line @typescript-eslint/no-unused-vars
window.onOk = () => {
sendStatusToParent("ok");
}
};

// eslint-disable-next-line @typescript-eslint/no-unused-vars
window.onCancel = () => {
sendStatusToParent("cancel");
}
};

// eslint-disable-next-line @typescript-eslint/no-unused-vars
window.checkboxChanged = (target_element) => {
window.checkboxChanged = (target_element) => {
const checkTargetLength = $("fluent-checkbox.check-target").length;
const checkedTargetLength = $("fluent-checkbox.check-target.checked").length;
// If the target is currently checked, the target is unchecked after this function and vice versa.
const adjustmentValue = $(target_element).hasClass("checked") ? -1 : 1;
const hasUnchecked = checkTargetLength !== checkedTargetLength + adjustmentValue;
$("#ok-button").prop("disabled", hasUnchecked);
}
};

function appendCheckboxes(target, groupedRecipients) {
for (const key in groupedRecipients) {
Expand Down

0 comments on commit 19b94c9

Please sign in to comment.