mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-02 14:06:51 +00:00
fix(nc-gui): disable duplicate connection for sqlite
This commit is contained in:
@@ -501,10 +501,30 @@ onKeyStroke('ArrowDown', onDown)
|
||||
<GeneralIcon class="text-gray-800" icon="edit" />
|
||||
<span>{{ $t('general.edit') }}</span>
|
||||
</NcMenuItem>
|
||||
<NcMenuItem @click="duplicateIntegration(integration)">
|
||||
<GeneralIcon class="text-gray-800" icon="duplicate" />
|
||||
<span>{{ $t('general.duplicate') }}</span>
|
||||
</NcMenuItem>
|
||||
<NcTooltip :disabled="integration?.sub_type !== ClientType.SQLITE">
|
||||
<template #title>
|
||||
Not allowed for type
|
||||
{{
|
||||
integration.sub_type && clientTypesMap[integration.sub_type]
|
||||
? clientTypesMap[integration.sub_type]?.text
|
||||
: integration.sub_type
|
||||
}}
|
||||
</template>
|
||||
|
||||
<NcMenuItem
|
||||
@click="duplicateIntegration(integration)"
|
||||
:disabled="integration?.sub_type === ClientType.SQLITE"
|
||||
>
|
||||
<GeneralIcon
|
||||
:class="{
|
||||
'text-current': integration?.sub_type === ClientType.SQLITE,
|
||||
'text-gray-800': integration?.sub_type !== ClientType.SQLITE,
|
||||
}"
|
||||
icon="duplicate"
|
||||
/>
|
||||
<span>{{ $t('general.duplicate') }}</span>
|
||||
</NcMenuItem>
|
||||
</NcTooltip>
|
||||
<NcDivider />
|
||||
<NcMenuItem class="!text-red-500 !hover:bg-red-50" @click="openDeleteIntegration(integration)">
|
||||
<GeneralIcon icon="delete" />
|
||||
|
||||
Reference in New Issue
Block a user