Files
nocodb/packages/nc-gui/components/workspace/integrations/SupportedDocs.vue
mertmit 69a29568c7 chore: sync
Signed-off-by: mertmit <mertmit99@gmail.com>
2026-01-10 00:21:02 +03:00

36 lines
899 B
Vue

<script lang="ts" setup>
import { IntegrationsType } from 'nocodb-sdk'
const { activeIntegrationItem } = useIntegrationStore()
const supportedDocs = computed(() => {
const docs = [
{
title: 'Integrations',
href: 'https://nocodb.com/docs/product-docs/integrations',
},
{
title: 'Create new connection',
href: 'https://nocodb.com/docs/product-docs/integrations/create-connection',
},
]
if (activeIntegrationItem.value?.type === IntegrationsType.Database) {
docs.push({
title: 'Add new Data source',
href: 'https://nocodb.com/docs/product-docs/data-sources/connect-to-data-source',
})
}
return docs as {
title: string
href: string
}[]
})
</script>
<template>
<NcModalSupportedDocs :docs="supportedDocs">
<template #title> {{ $t('title.relevantDocumentation') }} </template>
</NcModalSupportedDocs>
</template>