diff --git a/packages/builder/src/components/backend/DataTable/buttons/grid/GridAutomationsButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/grid/GridAutomationsButton.svelte index a19dbe4696..9420ca563a 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/grid/GridAutomationsButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/grid/GridAutomationsButton.svelte @@ -21,6 +21,7 @@ $automationStore.automations, resourceId ) + $: automationCount = connectedAutomations.length const findConnectedAutomations = (automations, resourceId) => { return automations.filter(automation => { @@ -41,11 +42,11 @@ - Automations + Automations{automationCount ? `: ${automationCount}` : ""} {#if !connectedAutomations.length} diff --git a/packages/builder/src/components/backend/DataTable/buttons/grid/GridColumnsSettingButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/grid/GridColumnsSettingButton.svelte index 3544a94d74..11109c0f78 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/grid/GridColumnsSettingButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/grid/GridColumnsSettingButton.svelte @@ -11,7 +11,7 @@ let anchor $: anyRestricted = $columns.filter(col => !col.visible || col.readonly).length - $: text = anyRestricted ? `Columns (${anyRestricted} restricted)` : "Columns" + $: text = anyRestricted ? `Columns: ${anyRestricted} restricted` : "Columns"
diff --git a/packages/builder/src/components/backend/DataTable/buttons/grid/GridRowActionsButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/grid/GridRowActionsButton.svelte index 90e446ce91..36ead100fc 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/grid/GridRowActionsButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/grid/GridRowActionsButton.svelte @@ -24,7 +24,7 @@ $: isView = ds?.type === "viewV2" $: fetchRowActions(tableId) $: viewActiveCount = 0 - $: activeCount = isView ? viewActiveCount : rowActions.length + $: actionCount = isView ? viewActiveCount : rowActions.length const rowActionUrl = derived([url, appStore], ([$url, $appStore]) => { return ({ automationId }) => { @@ -64,11 +64,11 @@ - Row actions ({activeCount}) + Row actions{actionCount ? `: ${actionCount}` : ""} A row action is a user-triggered automation for a chosen row. diff --git a/packages/builder/src/components/backend/DataTable/buttons/grid/GridScreensButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/grid/GridScreensButton.svelte index 9baeccb353..3fe6defffa 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/grid/GridScreensButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/grid/GridScreensButton.svelte @@ -9,6 +9,7 @@ $: ds = $datasource $: resourceId = ds?.type === "table" ? ds.tableId : ds?.id $: connectedScreens = findConnectedScreens($screenStore.screens, resourceId) + $: screenCount = connectedScreens.length const findConnectedScreens = (screens, resourceId) => { return screens.filter(screen => { @@ -21,11 +22,11 @@ - Screens + Screens{screenCount ? `: ${screenCount}` : ""} {#if !connectedScreens.length}