π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix(nc-gui): hide ai integration settings btn from ai prompt
Ramesh Mane0a301c3543f4
diff --git a/packages/nc-gui/components/smartsheet/column/LongTextOptions.vue b/packages/nc-gui/components/smartsheet/column/LongTextOptions.vueindex 14962e266a..9a4533bbf3 100644--- a/packages/nc-gui/components/smartsheet/column/LongTextOptions.vue+++ b/packages/nc-gui/components/smartsheet/column/LongTextOptions.vue@@ -7,6 +7,8 @@ const props = defineProps<{const emit = defineEmits(['update:modelValue', 'navigateToIntegrations'])+const { appInfo } = useGlobal()+const { t } = useI18n()const meta = inject(MetaInj)!@@ -239,7 +241,13 @@ watch(isPreviewEnabled, handleDisableSubmitBtn, {</NcTooltip><div class="flex-1"></div>- <div class="absolute right-0">+ <!-- Todo @rameshmane7218 remove hidden after enabling other integrations, hidden for now as we allow only nocoai -->+ <div+ class="absolute right-0"+ :class="{+ hidden: appInfo.env !== 'development' && appInfo.ee,+ }"+ ><AiSettingsv-model:fk-integration-id="vModel.fk_integration_id"v-model:model="vModel.model"diff --git a/packages/nc-gui/composables/useGlobal/types.ts b/packages/nc-gui/composables/useGlobal/types.tsindex c25b07d89d..f012e3ca79 100644--- a/packages/nc-gui/composables/useGlobal/types.ts+++ b/packages/nc-gui/composables/useGlobal/types.ts@@ -13,6 +13,7 @@ export interface AppInfo {limitRecord: number}firstUser: boolean+ env: stringgithubAuthEnabled: booleangoogleAuthEnabled: booleanoidcAuthEnabled: boolean