mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-02 08:36:45 +00:00
fix: gate auth category in AddConnectionDropdown by sync feature flag
This commit is contained in:
@@ -71,11 +71,9 @@ const isIntegrationAllowed = (i: (typeof allIntegrations)[number], category: (ty
|
||||
if (i.sub_type === SyncDataType.NOCODB) return false
|
||||
if (isEeUI && i.isOssOnly) return false
|
||||
|
||||
if (!easterEggToggle.value) {
|
||||
// Auth category: only show integrations in availableSyncAuthIntegrationSubtypes
|
||||
if (isSyncFeatureEnabled.value && category.value === IntegrationCategoryType.AUTH) {
|
||||
return availableSyncAuthIntegrationSubtypes.value.includes(i.sub_type)
|
||||
}
|
||||
// Auth category: always filter by available sync auth subtypes
|
||||
if (isSyncFeatureEnabled.value && category.value === IntegrationCategoryType.AUTH) {
|
||||
return availableSyncAuthIntegrationSubtypes.value.includes(i.sub_type)
|
||||
}
|
||||
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user