mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-02 09:26:57 +00:00
fix: hide data reflection (#10286)
* fix: hide data reflection is prod * fix: remove redundant check
This commit is contained in:
@@ -122,10 +122,16 @@ const categoriesQuery = computed({
|
||||
},
|
||||
})
|
||||
|
||||
const isDataReflectionEnabled = computed(() => {
|
||||
return isFeatureEnabled(FEATURE_FLAG.DATA_REFLECTION)
|
||||
})
|
||||
|
||||
const getIntegrationsByCategory = (category: IntegrationCategoryType, query: string) => {
|
||||
return allIntegrations.filter((i) => {
|
||||
const isOssOnly = isEeUI ? !i?.isOssOnly : true
|
||||
|
||||
if (!isDataReflectionEnabled.value && i.sub_type === SyncDataType.NOCODB) return false
|
||||
|
||||
if (i.hidden) return false
|
||||
|
||||
return (
|
||||
@@ -209,10 +215,6 @@ const handleAddIntegration = async (category: IntegrationCategoryType, integrati
|
||||
return
|
||||
}
|
||||
|
||||
if (!isFeatureEnabled(FEATURE_FLAG.DATA_REFLECTION) && integration.sub_type === SyncDataType.NOCODB) {
|
||||
return
|
||||
}
|
||||
|
||||
await addIntegration(integration)
|
||||
}
|
||||
|
||||
@@ -420,11 +422,7 @@ watch(activeViewTab, (value) => {
|
||||
<div class="name">{{ $t(integration.title) }}</div>
|
||||
<div v-if="integration.subtitle" class="subtitle flex-1">{{ $t(integration.subtitle) }}</div>
|
||||
</div>
|
||||
<div
|
||||
v-if="
|
||||
!isFeatureEnabled(FEATURE_FLAG.DATA_REFLECTION) && integration?.sub_type === SyncDataType.NOCODB
|
||||
"
|
||||
></div>
|
||||
<div v-if="!isDataReflectionEnabled && integration?.sub_type === SyncDataType.NOCODB"></div>
|
||||
<div v-else-if="integration?.sub_type === SyncDataType.NOCODB" class="flex items-center">
|
||||
<template v-if="dataReflectionEnabled">
|
||||
<GeneralIcon icon="check" class="text-primary text-lg" />
|
||||
|
||||
Reference in New Issue
Block a user