Browse Source

Merge pull request #10014 from nocodb/nc-chore/prompt-issues

Nc chore(nc-gui): new feature changes
pull/10015/head
Raju Udava 2 days ago committed by GitHub
parent
commit
fb295467ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  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