diff --git a/packages/builder/src/components/design/settings/controls/ColumnEditor/ColumnEditor.svelte b/packages/builder/src/components/design/settings/controls/ColumnEditor/ColumnEditor.svelte index 59340d4898..fcad4be180 100644 --- a/packages/builder/src/components/design/settings/controls/ColumnEditor/ColumnEditor.svelte +++ b/packages/builder/src/components/design/settings/controls/ColumnEditor/ColumnEditor.svelte @@ -75,7 +75,9 @@ } -Configure columns +
+ Configure columns +
Configure the columns in your {subject.toLowerCase()}. @@ -89,3 +91,9 @@ {allowCellEditing} /> + + diff --git a/packages/builder/src/components/design/settings/controls/FilterEditor/FilterEditor.svelte b/packages/builder/src/components/design/settings/controls/FilterEditor/FilterEditor.svelte index 1d4b629f2e..9d48789947 100644 --- a/packages/builder/src/components/design/settings/controls/FilterEditor/FilterEditor.svelte +++ b/packages/builder/src/components/design/settings/controls/FilterEditor/FilterEditor.svelte @@ -20,15 +20,26 @@ $: datasource = getDatasourceForProvider($currentAsset, componentInstance) $: schema = getSchemaForDatasource($currentAsset, datasource)?.schema $: schemaFields = Object.values(schema || {}) + $: text = getText(value) async function saveFilter() { dispatch("change", tempValue) notifications.success("Filters saved") drawer.hide() } + + const getText = filters => { + if (!filters?.length) { + return "No filters set" + } else { + return `${filters.length} filter${filters.length === 1 ? "" : "s"} set` + } + } -Define filters +
+ {text} +
(tempValue = e.detail)} /> + +