Allow disable specific options
This commit is contained in:
parent
896c262c94
commit
1dd5c67392
|
@ -92,7 +92,7 @@
|
|||
<ToggleActionButtonGroup
|
||||
disabled
|
||||
value={PERMISSION_OPTIONS.WRITABLE}
|
||||
{options}
|
||||
options={options.map(o => ({ ...o, disabled: true }))}
|
||||
/>
|
||||
{/if}
|
||||
{#each $columns as column}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue