Type constants
This commit is contained in:
parent
1fb530dd8e
commit
d9eb7eaa55
|
@ -4,6 +4,7 @@ import {
|
||||||
INTERNAL_TABLE_SOURCE_ID,
|
INTERNAL_TABLE_SOURCE_ID,
|
||||||
AutoFieldSubType,
|
AutoFieldSubType,
|
||||||
Hosting,
|
Hosting,
|
||||||
|
FieldSubType,
|
||||||
} from "@budibase/types"
|
} from "@budibase/types"
|
||||||
import { Constants } from "@budibase/frontend-core"
|
import { Constants } from "@budibase/frontend-core"
|
||||||
|
|
||||||
|
@ -209,7 +210,7 @@ export const Roles = {
|
||||||
BUILDER: "BUILDER",
|
BUILDER: "BUILDER",
|
||||||
}
|
}
|
||||||
|
|
||||||
export function isAutoColumnUserRelationship(subtype) {
|
export function isAutoColumnUserRelationship(subtype: FieldSubType) {
|
||||||
return (
|
return (
|
||||||
subtype === AUTO_COLUMN_SUB_TYPES.CREATED_BY ||
|
subtype === AUTO_COLUMN_SUB_TYPES.CREATED_BY ||
|
||||||
subtype === AUTO_COLUMN_SUB_TYPES.UPDATED_BY
|
subtype === AUTO_COLUMN_SUB_TYPES.UPDATED_BY
|
Loading…
Reference in New Issue