User constant for user table ID.

This commit is contained in:
Sam Rose 2023-10-25 15:33:12 +01:00
parent 5779e97e6e
commit 402a53cacb
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@
import MigrationModal from "../controls/MigrationModal.svelte"
import { debounce } from "../../../utils/utils"
import { FieldType, FormulaTypes } from "@budibase/types"
import { TableNames } from "../../../constants"
export let column
export let idx
@ -381,7 +382,7 @@
>
Hide column
</MenuItem>
{#if $config.canEditColumns && column.schema.type === "link" && column.schema.tableId === "ta_users"}
{#if $config.canEditColumns && column.schema.type === "link" && column.schema.tableId === TableNames.USERS}
<MenuItem icon="User" on:click={openMigrationModal}>
Migrate to user column
</MenuItem>