PR Feedback

This commit is contained in:
Dean 2023-11-10 12:02:11 +00:00
parent 39d899bcbc
commit f808b3e111
3 changed files with 2 additions and 15 deletions

View File

@ -91,7 +91,6 @@
open = true open = true
} }
}} }}
{disabled}
/> />
<Popover <Popover

View File

@ -152,10 +152,6 @@
const parsedColumns = getValidColumns(columns, options) const parsedColumns = getValidColumns(columns, options)
dispatch("change", parsedColumns) dispatch("change", parsedColumns)
} }
const toggleAll = update => {
listUpdated(update)
}
</script> </script>
<div class="field-configuration"> <div class="field-configuration">
@ -167,7 +163,7 @@
...field, ...field,
active: selectAll, active: selectAll,
})) }))
toggleAll(update) listUpdated(update)
}} }}
text="" text=""
bind:value={selectAll} bind:value={selectAll}

View File

@ -11,7 +11,6 @@
export let componentBindings export let componentBindings
export let bindings export let bindings
export let anchor export let anchor
export let updating //or disabled
const dispatch = createEventDispatcher() const dispatch = createEventDispatcher()
const onToggle = item => { const onToggle = item => {
@ -50,7 +49,6 @@
{bindings} {bindings}
{parseSettings} {parseSettings}
on:change on:change
disabled={updating}
> >
<div slot="header" class="type-icon"> <div slot="header" class="type-icon">
<Icon name={componentDef.icon} /> <Icon name={componentDef.icon} />
@ -60,13 +58,7 @@
<div class="field-label">{readableText}</div> <div class="field-label">{readableText}</div>
</div> </div>
<div class="list-item-right"> <div class="list-item-right">
<Toggle <Toggle on:change={onToggle(item)} text="" value={item.active} thin />
on:change={onToggle(item)}
text=""
value={item.active}
thin
disabled={updating}
/>
</div> </div>
</div> </div>