Browse Source

chore(nc-gui): beta feature changes

pull/10014/head
Ramesh Mane 2 days ago
parent
commit
9f79e1dfdb
  1. 2
      packages/nc-gui/components/dashboard/FeatureExperimentation.vue
  2. 3
      packages/nc-gui/composables/useBetaFeatureToggle.ts

2
packages/nc-gui/components/dashboard/FeatureExperimentation.vue

@ -79,7 +79,7 @@ onUnmounted(() => {
>
<template v-for="feature in features" :key="feature.id">
<div
v-if="!feature?.isEngineering || isEngineeringModeOn"
v-if="(!feature.isEE || isEeUI) && (!feature?.isEngineering || isEngineeringModeOn)"
class="border-b-1 px-3 flex gap-2 flex-col py-2 border-gray-200 last:border-b-0"
>
<div class="flex items-center justify-between">

3
packages/nc-gui/composables/useBetaFeatureToggle.ts

@ -14,6 +14,7 @@ const FEATURES = [
description: 'Unlock AI features to enhance your NocoDB experience.',
enabled: false,
isEngineering: true,
isEE: true,
},
{
id: 'integrations',
@ -81,7 +82,7 @@ export const useBetaFeatureToggle = createSharedComposable(() => {
const featureStates = computed(() => {
return features.value.reduce((acc, feature) => {
acc[feature.id] = feature.enabled
acc[feature.id] = feature.isEE && !isEeUI ? false : feature.enabled
return acc
}, {} as Record<FeatureId, boolean>)
})

Loading…
Cancel
Save