web: treat checker All toggle as on when any rule is enabled
Switch the bulk toggle from every-enabled to some-enabled so the "All" switch reflects an OR across rules: on when at least one is active, off only when all are disabled.
This commit is contained in:
parent
d8f542a829
commit
10c10bc846
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@
|
|||
let toggleable = $derived(rules.filter((r) => r.name && !ruleFailure(r.name)));
|
||||
|
||||
let allEnabled = $derived(
|
||||
plan && toggleable.length > 0 && toggleable.every((r) => plan!.enabled?.[r.name!]),
|
||||
plan && toggleable.length > 0 && toggleable.some((r) => plan!.enabled?.[r.name!]),
|
||||
);
|
||||
|
||||
function toggleAll() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue