Watch
0
0
Fork
You've already forked hyperhive
0

swarm-ui: read the agent's grant once for the internet and permissions controls, and save one permission change at a time

This commit is contained in:
iris 2026-11-04 00:23:56 +01:00 • committed by mara
commit 9afe21819f

View file

@ -30,10 +30,13 @@ export function MultiselectFilterOptions({
options,
filter,
onToggle,
disabled = false,
}: {
options: string[];
filter: MultiselectFilterState;
onToggle: (value: string) => void;
/** Greys the boxes out, e.g. while a change is being saved. */
disabled?: boolean;
}) {
return (
<div class="ui-multiselect-filter-options">
@ -41,6 +44,7 @@ export function MultiselectFilterOptions({
<label key={v} class="ui-multiselect-filter-checkbox">
<input
type="checkbox"
disabled={disabled}
checked={filter.values.includes(v)}
onChange={() => onToggle(v)}
/>