Browse Source

fix: show RO option for all type of sources

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

Loading…
Cancel
Save