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:
parent
5e23734667
commit
9afe21819f
1 changed files with 73 additions and 36 deletions
|
|
@ -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)}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Reference in a new issue