fix: save readonly state in source meta column

This commit is contained in:
Pranav C
2024-06-18 19:06:17 +00:00
parent a5b74a1955
commit 0d2505ebcb
2 changed files with 25 additions and 0 deletions

View File

@@ -71,6 +71,10 @@ const customFormState = ref<ProjectCreateForm>({
},
sslUse: SSLUsage.No,
extraParameters: [],
meta: {
readOnlySchema: true,
readOnlyData: false,
},
})
const validators = computed(() => {
@@ -524,6 +528,14 @@ watch(
>
<a-input v-model:value="formState.dataSource.searchPath[0]" />
</a-form-item>
<a-form-item label="Readonly Schema">
<a-switch v-model:checked="formState.meta.readOnlySchema" size="small"></a-switch>
</a-form-item>
<a-form-item label="Readonly Data">
<a-switch v-model:checked="formState.meta.readOnlyData" size="small"></a-switch>
</a-form-item>
<!-- 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">