Browse Source

fix: show RO option for all type of sources

pull/8708/head
Pranav C 3 weeks ago
parent
commit
c5a1047d0b
  1. 9
      packages/nc-gui/components/dashboard/settings/data-sources/CreateBase.vue
  2. 9
      packages/nc-gui/components/dashboard/settings/data-sources/EditBase.vue

9
packages/nc-gui/components/dashboard/settings/data-sources/CreateBase.vue

@ -544,6 +544,7 @@ const allowDataWrite = computed({
>
<a-input v-model:value="formState.dataSource.searchPath[0]" />
</a-form-item>
</template>
<a-form-item>
<template #label>
<div class="flex gap-1 justify-end">
@ -588,7 +589,13 @@ const allowDataWrite = computed({
</NcTooltip>
</div>
</a-form-item>
<template
v-if="
formState.dataSource.client !== ClientType.SQLITE &&
formState.dataSource.client !== ClientType.DATABRICKS &&
formState.dataSource.client !== ClientType.SNOWFLAKE
"
>
<div class="flex items-right justify-end gap-2">
<!-- Use Connection URL -->
<NcButton type="ghost" size="small" class="nc-extdb-btn-import-url !rounded-md" @click.stop="importURLDlg = true">

9
packages/nc-gui/components/dashboard/settings/data-sources/EditBase.vue

@ -562,7 +562,7 @@ const allowDataWrite = computed({
>
<a-input v-model:value="formState.dataSource.searchPath[0]" />
</a-form-item>
</template>
<a-form-item>
<template #label>
<div class="flex gap-1 justify-end">
@ -607,6 +607,13 @@ const allowDataWrite = computed({
</NcTooltip>
</div>
</a-form-item>
<template
v-if="
formState.dataSource.client !== ClientType.SQLITE &&
formState.dataSource.client !== ClientType.DATABRICKS &&
formState.dataSource.client !== ClientType.SNOWFLAKE
"
>
<!-- Use Connection URL -->
<div class="flex justify-end gap-2">
<NcButton size="small" type="ghost" class="nc-extdb-btn-import-url !rounded-md" @click.stop="importURLDlg = true">

Loading…
Cancel
Save