diff --git a/packages/builder/src/builderStore/store/backend.js b/packages/builder/src/builderStore/store/backend.js index c3cd7eae8e..f48b561ef0 100644 --- a/packages/builder/src/builderStore/store/backend.js +++ b/packages/builder/src/builderStore/store/backend.js @@ -103,7 +103,7 @@ export const getBackendUiStore = () => { } } - // Optionally set primary display + // Optionally set display column if (primaryDisplay) { state.draftTable.primaryDisplay = field.name } diff --git a/packages/builder/src/components/backend/DataTable/popovers/ColumnPopover.svelte b/packages/builder/src/components/backend/DataTable/popovers/ColumnPopover.svelte index 071d8038bf..2857b651c3 100644 --- a/packages/builder/src/components/backend/DataTable/popovers/ColumnPopover.svelte +++ b/packages/builder/src/components/backend/DataTable/popovers/ColumnPopover.svelte @@ -33,7 +33,7 @@ function deleteColumn() { if (field.name === $backendUiStore.selectedTable.primaryDisplay) { - notifier.danger("You cannot delete the primary display column") + notifier.danger("You cannot delete the display column") } else { backendUiStore.actions.tables.deleteField(field) notifier.success("Column deleted") @@ -44,7 +44,7 @@ function sort(direction, column) { backendUiStore.update(state => { if (direction !== "none") { - state.sort = {direction, column} + state.sort = { direction, column } } else { state.sort = undefined } diff --git a/packages/builder/src/components/common/LinkedRowSelector.svelte b/packages/builder/src/components/common/LinkedRowSelector.svelte index 6bd3fc3a0f..a9a05cf12b 100644 --- a/packages/builder/src/components/common/LinkedRowSelector.svelte +++ b/packages/builder/src/components/common/LinkedRowSelector.svelte @@ -36,7 +36,7 @@ {#if linkedTable.primaryDisplay == null} diff --git a/packages/server/src/api/controllers/table.js b/packages/server/src/api/controllers/table.js index 5966bbdc5d..82f981e3e6 100644 --- a/packages/server/src/api/controllers/table.js +++ b/packages/server/src/api/controllers/table.js @@ -52,7 +52,7 @@ exports.save = async function(ctx) { if (_rename && tableToSave.schema[_rename.updated].type === "link") { throw "Cannot rename a linked field." } else if (_rename && tableToSave.primaryDisplay === _rename.old) { - throw "Cannot rename the primary display field." + throw "Cannot rename the display column." } else if (_rename) { const rows = await db.allDocs( getRowParams(tableToSave._id, null, { diff --git a/packages/standard-components/src/LinkedRowSelector.svelte b/packages/standard-components/src/LinkedRowSelector.svelte index 72d95f888d..cd9c6fc264 100644 --- a/packages/standard-components/src/LinkedRowSelector.svelte +++ b/packages/standard-components/src/LinkedRowSelector.svelte @@ -45,7 +45,7 @@ {/if}