1
0
Fork 0
mirror of synced 2024-09-28 23:31:43 +12:00

Rename usages of primary display column to just display column

This commit is contained in:
Andrew Kingston 2020-10-14 20:38:32 +01:00
parent 59b12af15c
commit 313b26982e
5 changed files with 6 additions and 6 deletions

View file

@ -103,7 +103,7 @@ export const getBackendUiStore = () => {
}
}
// Optionally set primary display
// Optionally set display column
if (primaryDisplay) {
state.draftTable.primaryDisplay = field.name
}

View file

@ -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
}

View file

@ -36,7 +36,7 @@
{#if linkedTable.primaryDisplay == null}
<Label extraSmall grey>{label}</Label>
<Label small black>
Please choose a primary display column for the
Please choose a display column for the
<b>{linkedTable.name}</b>
table.
</Label>

View file

@ -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, {

View file

@ -45,7 +45,7 @@
<Label extraSmall grey>{label}</Label>
{/if}
<Label small black>
Please choose a primary display column for the
Please choose a display column for the
<b>{linkedTable.name}</b>
table.
</Label>