lint
This commit is contained in:
parent
01a47bbd22
commit
46e88bd79d
|
@ -9,7 +9,7 @@
|
||||||
} from "@budibase/bbui"
|
} from "@budibase/bbui"
|
||||||
import { onMount, createEventDispatcher } from "svelte"
|
import { onMount, createEventDispatcher } from "svelte"
|
||||||
import { flags } from "@/stores/builder"
|
import { flags } from "@/stores/builder"
|
||||||
import { featureFlags, licensing } from "@/stores/portal"
|
import { licensing } from "@/stores/portal"
|
||||||
import { API } from "@/api"
|
import { API } from "@/api"
|
||||||
import MagicWand from "../../../../assets/MagicWand.svelte"
|
import MagicWand from "../../../../assets/MagicWand.svelte"
|
||||||
|
|
||||||
|
@ -27,8 +27,7 @@
|
||||||
let loadingAICronExpression = false
|
let loadingAICronExpression = false
|
||||||
|
|
||||||
$: aiEnabled =
|
$: aiEnabled =
|
||||||
($featureFlags.AI_CUSTOM_CONFIGS && $licensing.customAIConfigsEnabled) ||
|
$licensing.customAIConfigsEnabled || $licensing.budibaseAIEnabled
|
||||||
($featureFlags.BUDIBASE_AI && $licensing.budibaseAIEnabled)
|
|
||||||
$: {
|
$: {
|
||||||
if (cronExpression) {
|
if (cronExpression) {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
import { createEventDispatcher, getContext, onMount } from "svelte"
|
import { createEventDispatcher, getContext, onMount } from "svelte"
|
||||||
import { cloneDeep } from "lodash/fp"
|
import { cloneDeep } from "lodash/fp"
|
||||||
import { tables, datasources } from "@/stores/builder"
|
import { tables, datasources } from "@/stores/builder"
|
||||||
import { featureFlags } from "@/stores/portal"
|
import { licensing } from "@/stores/portal"
|
||||||
import { TableNames, UNEDITABLE_USER_FIELDS } from "@/constants"
|
import { TableNames, UNEDITABLE_USER_FIELDS } from "@/constants"
|
||||||
import {
|
import {
|
||||||
FIELDS,
|
FIELDS,
|
||||||
|
@ -100,7 +100,8 @@
|
||||||
let optionsValid = true
|
let optionsValid = true
|
||||||
|
|
||||||
$: rowGoldenSample = RowUtils.generateGoldenSample($rows)
|
$: rowGoldenSample = RowUtils.generateGoldenSample($rows)
|
||||||
$: aiEnabled = $featureFlags.BUDIBASE_AI || $featureFlags.AI_CUSTOM_CONFIGS
|
$: aiEnabled =
|
||||||
|
$licensing.customAIConfigsEnabled || $licensing.budibaseAiEnabled
|
||||||
$: if (primaryDisplay) {
|
$: if (primaryDisplay) {
|
||||||
editableColumn.constraints.presence = { allowEmpty: false }
|
editableColumn.constraints.presence = { allowEmpty: false }
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
import { viewsV2, rowActions } from "@/stores/builder"
|
import { viewsV2, rowActions } from "@/stores/builder"
|
||||||
import { admin, themeStore, featureFlags } from "@/stores/portal"
|
import { admin, themeStore, licensing } from "@/stores/portal"
|
||||||
import { Grid } from "@budibase/frontend-core"
|
import { Grid } from "@budibase/frontend-core"
|
||||||
import { API } from "@/api"
|
import { API } from "@/api"
|
||||||
import { notifications } from "@budibase/bbui"
|
import { notifications } from "@budibase/bbui"
|
||||||
|
@ -53,7 +53,7 @@
|
||||||
{buttons}
|
{buttons}
|
||||||
allowAddRows
|
allowAddRows
|
||||||
allowDeleteRows
|
allowDeleteRows
|
||||||
aiEnabled={$featureFlags.BUDIBASE_AI || $featureFlags.AI_CUSTOM_CONFIGS}
|
aiEnabled={$licensing.customAIConfigsEnabled || $licensing.budibaseAiEnabled}
|
||||||
showAvatars={false}
|
showAvatars={false}
|
||||||
on:updatedatasource={handleGridViewUpdate}
|
on:updatedatasource={handleGridViewUpdate}
|
||||||
isCloud={$admin.cloud}
|
isCloud={$admin.cloud}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
rowActions,
|
rowActions,
|
||||||
roles,
|
roles,
|
||||||
} from "@/stores/builder"
|
} from "@/stores/builder"
|
||||||
import { themeStore, admin, featureFlags } from "@/stores/portal"
|
import { themeStore, admin, licensing } from "@/stores/portal"
|
||||||
import { TableNames } from "@/constants"
|
import { TableNames } from "@/constants"
|
||||||
import { Grid } from "@budibase/frontend-core"
|
import { Grid } from "@budibase/frontend-core"
|
||||||
import { API } from "@/api"
|
import { API } from "@/api"
|
||||||
|
@ -130,7 +130,8 @@
|
||||||
schemaOverrides={isUsersTable ? userSchemaOverrides : null}
|
schemaOverrides={isUsersTable ? userSchemaOverrides : null}
|
||||||
showAvatars={false}
|
showAvatars={false}
|
||||||
isCloud={$admin.cloud}
|
isCloud={$admin.cloud}
|
||||||
aiEnabled={$featureFlags.BUDIBASE_AI || $featureFlags.AI_CUSTOM_CONFIGS}
|
aiEnabled={$licensing.customAIConfigsEnabled ||
|
||||||
|
$licensing.budibaseAIEnabled}
|
||||||
{buttons}
|
{buttons}
|
||||||
buttonsCollapsed
|
buttonsCollapsed
|
||||||
on:updatedatasource={handleGridTableUpdate}
|
on:updatedatasource={handleGridTableUpdate}
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
Tags,
|
Tags,
|
||||||
Tag,
|
Tag,
|
||||||
} from "@budibase/bbui"
|
} from "@budibase/bbui"
|
||||||
import { admin, licensing, featureFlags } from "@/stores/portal"
|
import { admin, licensing } from "@/stores/portal"
|
||||||
import { API } from "@/api"
|
import { API } from "@/api"
|
||||||
import AIConfigModal from "./ConfigModal.svelte"
|
import AIConfigModal from "./ConfigModal.svelte"
|
||||||
import AIConfigTile from "./AIConfigTile.svelte"
|
import AIConfigTile from "./AIConfigTile.svelte"
|
||||||
|
@ -27,8 +27,7 @@
|
||||||
let editingUuid
|
let editingUuid
|
||||||
|
|
||||||
$: isCloud = $admin.cloud
|
$: isCloud = $admin.cloud
|
||||||
$: customAIConfigsEnabled =
|
$: customAIConfigsEnabled = $licensing.customAIConfigsEnabled
|
||||||
$featureFlags.AI_CUSTOM_CONFIGS && $licensing.customAIConfigsEnabled
|
|
||||||
|
|
||||||
async function fetchAIConfig() {
|
async function fetchAIConfig() {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -1,10 +1,5 @@
|
||||||
<script>
|
<script>
|
||||||
import { redirect } from "@roxi/routify"
|
import { redirect } from "@roxi/routify"
|
||||||
import { featureFlags } from "@/stores/portal"
|
|
||||||
|
|
||||||
if ($featureFlags.AI_CUSTOM_CONFIGS) {
|
|
||||||
$redirect("./ai")
|
$redirect("./ai")
|
||||||
} else {
|
|
||||||
$redirect("./auth")
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue