1
0
Fork 0
mirror of synced 2024-09-13 07:53:31 +12:00

Allow disable specific options

This commit is contained in:
Adria Navarro 2024-05-30 10:55:25 +02:00
parent 896c262c94
commit 1dd5c67392
2 changed files with 2 additions and 3 deletions

View file

@ -92,7 +92,7 @@
<ToggleActionButtonGroup
disabled
value={PERMISSION_OPTIONS.WRITABLE}
{options}
options={options.map(o => ({ ...o, disabled: true }))}
/>
{/if}
{#each $columns as column}

View file

@ -7,7 +7,6 @@
export let value
export let options
export let disabled
</script>
<div class="permissionPicker">
@ -15,7 +14,7 @@
<AbsTooltip text={option.tooltip} type={TooltipType.Info}>
<ActionButton
on:click={() => dispatch("click", option.value)}
{disabled}
disabled={option.disabled}
size="S"
icon={option.icon}
quiet