mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-02 00:56:57 +00:00
fix: hide coming-soon integrations and gate auth provider by sync flag
This commit is contained in:
@@ -67,6 +67,8 @@ const {
|
||||
|
||||
const focusTextArea: VNodeRef = (el) => el && el?.focus?.()
|
||||
|
||||
const showComingSoonIntegrations = ref(false)
|
||||
|
||||
const activeCategory = ref<IntegrationCategoryItemType | null>(null)
|
||||
|
||||
const searchQuery = ref<string>('')
|
||||
@@ -86,6 +88,8 @@ const integrationCategoriesRef = computed(() => {
|
||||
.filter((c) => {
|
||||
if (isEEFeatureBlocked.value && c.value !== IntegrationCategoryType.DATABASE) return false
|
||||
|
||||
if (!showComingSoonIntegrations.value && !c.isAvailable) return false
|
||||
|
||||
const filterByActiveCategory = activeCategory.value ? c.value === activeCategory.value.value : true
|
||||
|
||||
return filterCategory(c) && filterByActiveCategory && !c.value.endsWith('-coming-soon')
|
||||
@@ -152,6 +156,8 @@ const integrationsMapByCategory = computed(() => {
|
||||
.filter((c) => {
|
||||
if (isEEFeatureBlocked.value && c.value !== IntegrationCategoryType.DATABASE) return false
|
||||
|
||||
if (!showComingSoonIntegrations.value && !c.isAvailable) return false
|
||||
|
||||
const filterByActiveCategory = activeCategory.value ? c.value === activeCategory.value.value : true
|
||||
|
||||
const filterByUrlQuery =
|
||||
@@ -248,12 +254,15 @@ const toggleShowOrHideAllCategory = () => {
|
||||
}
|
||||
|
||||
const isIntegrationVisible = (integration: IntegrationItemType, category: any) => {
|
||||
if (easterEggToggle.value) return true
|
||||
if (!showComingSoonIntegrations.value && !integration.isAvailable) return false
|
||||
|
||||
// AUTH category: always filter by available sync auth subtypes, even when easterEggToggle is on
|
||||
if (isSyncFeatureEnabled.value && category.value === IntegrationCategoryType.AUTH) {
|
||||
return availableSyncAuthIntegrationSubtypes.value.includes(integration.sub_type)
|
||||
}
|
||||
|
||||
if (easterEggToggle.value) return true
|
||||
|
||||
return !!integration.isAvailable
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user