diff --git a/packages/builder/src/components/design/settings/controls/ButtonActionEditor/ButtonActionEditor.svelte b/packages/builder/src/components/design/settings/controls/ButtonActionEditor/ButtonActionEditor.svelte
index 77d675e239..3fefb60387 100644
--- a/packages/builder/src/components/design/settings/controls/ButtonActionEditor/ButtonActionEditor.svelte
+++ b/packages/builder/src/components/design/settings/controls/ButtonActionEditor/ButtonActionEditor.svelte
@@ -70,8 +70,9 @@
} set`
-
{actionText}
-Define actions
+
@@ -89,9 +90,7 @@
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 5f1abdbeca..cebb429ac4 100644
--- a/packages/builder/src/components/design/settings/controls/ColumnEditor/ColumnEditor.svelte
+++ b/packages/builder/src/components/design/settings/controls/ColumnEditor/ColumnEditor.svelte
@@ -20,6 +20,7 @@
let drawer
let boundValue
+ $: text = getText(value)
$: datasource = getDatasourceForProvider($currentAsset, componentInstance)
$: schema = getSchema($currentAsset, datasource)
$: options = allowCellEditing
@@ -31,6 +32,17 @@
allowLinks: true,
})
+ const getText = value => {
+ if (!value?.length) {
+ return "All columns"
+ }
+ let text = `${value.length} column`
+ if (value.length !== 1) {
+ text += "s"
+ }
+ return text
+ }
+
const getSchema = (asset, datasource) => {
const schema = getSchemaForDatasource(asset, datasource).schema
@@ -76,7 +88,7 @@
-
Configure columns
+
{text}
diff --git a/packages/builder/src/components/design/settings/controls/FieldConfiguration/FieldConfiguration.svelte b/packages/builder/src/components/design/settings/controls/FieldConfiguration/FieldConfiguration.svelte
index 2778ce4f74..f9dccf586c 100644
--- a/packages/builder/src/components/design/settings/controls/FieldConfiguration/FieldConfiguration.svelte
+++ b/packages/builder/src/components/design/settings/controls/FieldConfiguration/FieldConfiguration.svelte
@@ -12,25 +12,36 @@
export let componentInstance
export let value = []
- const convertOldColumnFormat = oldColumns => {
- if (typeof oldColumns?.[0] === "string") {
- value = oldColumns.map(field => ({ name: field, displayName: field }))
- }
- }
-
- $: convertOldColumnFormat(value)
-
const dispatch = createEventDispatcher()
let drawer
let boundValue
+ $: text = getText(value)
+ $: convertOldColumnFormat(value)
$: datasource = getDatasourceForProvider($currentAsset, componentInstance)
$: schema = getSchema($currentAsset, datasource)
$: options = Object.keys(schema || {})
$: sanitisedValue = getValidColumns(value, options)
$: updateBoundValue(sanitisedValue)
+ const getText = value => {
+ if (!value?.length) {
+ return "All fields"
+ }
+ let text = `${value.length} field`
+ if (value.length !== 1) {
+ text += "s"
+ }
+ return text
+ }
+
+ const convertOldColumnFormat = oldColumns => {
+ if (typeof oldColumns?.[0] === "string") {
+ value = oldColumns.map(field => ({ name: field, displayName: field }))
+ }
+ }
+
const getSchema = (asset, datasource) => {
const schema = getSchemaForDatasource(asset, datasource).schema
@@ -75,7 +86,10 @@
}
-Configure fields
+
+
Configure the fields in your form.
@@ -83,3 +97,9 @@
+
+