Use field types
This commit is contained in:
parent
e89c5ad112
commit
c36ca27292
|
@ -34,15 +34,15 @@
|
||||||
import { RowUtils } from "@budibase/frontend-core"
|
import { RowUtils } from "@budibase/frontend-core"
|
||||||
import ServerBindingPanel from "components/common/bindings/ServerBindingPanel.svelte"
|
import ServerBindingPanel from "components/common/bindings/ServerBindingPanel.svelte"
|
||||||
|
|
||||||
const AUTO_TYPE = FIELDS.AUTO.type
|
const AUTO_TYPE = FieldType.AUTO
|
||||||
const FORMULA_TYPE = FIELDS.FORMULA.type
|
const FORMULA_TYPE = FieldType.FORMULA
|
||||||
const LINK_TYPE = FIELDS.LINK.type
|
const LINK_TYPE = FieldType.LINK
|
||||||
const STRING_TYPE = FIELDS.STRING.type
|
const STRING_TYPE = FieldType.STRING
|
||||||
const NUMBER_TYPE = FIELDS.NUMBER.type
|
const NUMBER_TYPE = FieldType.NUMBER
|
||||||
const JSON_TYPE = FIELDS.JSON.type
|
const JSON_TYPE = FieldType.JSON
|
||||||
const DATE_TYPE = FIELDS.DATETIME.type
|
const DATE_TYPE = FieldType.DATETIME
|
||||||
const USER_TYPE = FIELDS.USER.subtype
|
const USER_TYPE = FieldSubtype.USER
|
||||||
const USERS_TYPE = FIELDS.USERS.subtype
|
const USERS_TYPE = FieldSubtype.USERS
|
||||||
|
|
||||||
const dispatch = createEventDispatcher()
|
const dispatch = createEventDispatcher()
|
||||||
const PROHIBITED_COLUMN_NAMES = ["type", "_id", "_rev", "tableId"]
|
const PROHIBITED_COLUMN_NAMES = ["type", "_id", "_rev", "tableId"]
|
||||||
|
|
Loading…
Reference in New Issue