Browse Source

fix: enable snapshots

pull/9920/head
DarkPhoenix2704 3 days ago
parent
commit
e2dde21330
  1. 4
      packages/nc-gui/components/dashboard/settings/base/index.vue
  2. 7
      packages/nc-gui/composables/useBetaFeatureToggle.ts

4
packages/nc-gui/components/dashboard/settings/base/index.vue

@ -8,7 +8,7 @@ const { isFeatureEnabled } = useBetaFeatureToggle()
const router = useRouter() const router = useRouter()
const activeMenu = ref( const activeMenu = ref(
isEeUI && isFeatureEnabled(FEATURE_FLAG.BASE_SNAPSHOTS) && hasPermissionForSnapshots.value ? 'snapshots' : 'visibility', isEeUI && hasPermissionForSnapshots.value ? 'snapshots' : 'visibility',
) )
const selectMenu = (option: string) => { const selectMenu = (option: string) => {
@ -38,7 +38,7 @@ onMounted(() => {
<div class="flex flex-col"> <div class="flex flex-col">
<div class="h-full w-60"> <div class="h-full w-60">
<div <div
v-if="isEeUI && hasPermissionForSnapshots && isFeatureEnabled(FEATURE_FLAG.BASE_SNAPSHOTS)" v-if="isEeUI && hasPermissionForSnapshots"
data-testid="snapshots-tab" data-testid="snapshots-tab"
:class="{ :class="{
'active-menu': activeMenu === 'snapshots', 'active-menu': activeMenu === 'snapshots',

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

@ -50,13 +50,6 @@ const FEATURES = [
enabled: false, enabled: false,
isEngineering: true, isEngineering: true,
}, },
{
id: 'base_snapshots',
title: 'Enable Base Snapshots',
description: 'Snapshots serve as comprehensive backups of your base, capturing its state at the time of creation.',
enabled: false,
isEngineering: true,
},
] ]
export const FEATURE_FLAG = Object.fromEntries(FEATURES.map((feature) => [feature.id.toUpperCase(), feature.id])) as Record< export const FEATURE_FLAG = Object.fromEntries(FEATURES.map((feature) => [feature.id.toUpperCase(), feature.id])) as Record<

Loading…
Cancel
Save