Allow anyone to make an AI column.
This commit is contained in:
parent
3af9d9db6d
commit
f075a7a0be
|
@ -28,7 +28,6 @@
|
||||||
import { createEventDispatcher, getContext, onMount } from "svelte"
|
import { createEventDispatcher, getContext, onMount } from "svelte"
|
||||||
import { cloneDeep } from "lodash/fp"
|
import { cloneDeep } from "lodash/fp"
|
||||||
import { datasources, tables } from "@/stores/builder"
|
import { datasources, tables } from "@/stores/builder"
|
||||||
import { licensing } from "@/stores/portal"
|
|
||||||
import { TableNames, UNEDITABLE_USER_FIELDS } from "@/constants"
|
import { TableNames, UNEDITABLE_USER_FIELDS } from "@/constants"
|
||||||
import {
|
import {
|
||||||
DB_TYPE_EXTERNAL,
|
DB_TYPE_EXTERNAL,
|
||||||
|
@ -137,8 +136,6 @@
|
||||||
]
|
]
|
||||||
|
|
||||||
$: rowGoldenSample = RowUtils.generateGoldenSample($rows)
|
$: rowGoldenSample = RowUtils.generateGoldenSample($rows)
|
||||||
$: aiEnabled =
|
|
||||||
$licensing.customAIConfigsEnabled || $licensing.budibaseAIEnabled
|
|
||||||
$: if (hasPrimaryDisplay && editableColumn.constraints) {
|
$: if (hasPrimaryDisplay && editableColumn.constraints) {
|
||||||
editableColumn.constraints.presence = { allowEmpty: false }
|
editableColumn.constraints.presence = { allowEmpty: false }
|
||||||
}
|
}
|
||||||
|
@ -559,10 +556,8 @@
|
||||||
FIELDS.SIGNATURE_SINGLE,
|
FIELDS.SIGNATURE_SINGLE,
|
||||||
FIELDS.JSON,
|
FIELDS.JSON,
|
||||||
FIELDS.AUTO,
|
FIELDS.AUTO,
|
||||||
|
FIELDS.AI,
|
||||||
]
|
]
|
||||||
if (aiEnabled) {
|
|
||||||
fields.push(FIELDS.AI)
|
|
||||||
}
|
|
||||||
return fields
|
return fields
|
||||||
}
|
}
|
||||||
if (isExternalTable && isSqlTable) {
|
if (isExternalTable && isSqlTable) {
|
||||||
|
|
Loading…
Reference in New Issue