|
|
|
@ -404,6 +404,7 @@ const allowMetaWrite = computed({
|
|
|
|
|
get: () => !formState.value.is_schema_readonly, |
|
|
|
|
set: (v) => { |
|
|
|
|
formState.value.is_schema_readonly = !v |
|
|
|
|
$e('c:source:schema-write-toggle', {allowed: !v}) |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
@ -411,6 +412,7 @@ const allowDataWrite = computed({
|
|
|
|
|
get: () => !formState.value.is_data_readonly, |
|
|
|
|
set: (v) => { |
|
|
|
|
formState.value.is_data_readonly = !v |
|
|
|
|
$e('c:source:data-write-toggle', { allowed: !v }) |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
</script> |
|
|
|
@ -499,7 +501,8 @@ const allowDataWrite = computed({
|
|
|
|
|
|
|
|
|
|
<!-- Username --> |
|
|
|
|
<a-form-item :label="$t('labels.username')" v-bind="validateInfos['dataSource.connection.user']"> |
|
|
|
|
<a-input v-model:value="(formState.dataSource.connection as DefaultConnection).user" class="nc-extdb-host-user" /> |
|
|
|
|
<a-input v-model:value="(formState.dataSource.connection as DefaultConnection).user" |
|
|
|
|
class="nc-extdb-host-user"/> |
|
|
|
|
</a-form-item> |
|
|
|
|
|
|
|
|
|
<!-- Password --> |
|
|
|
@ -563,7 +566,8 @@ const allowDataWrite = computed({
|
|
|
|
|
|
|
|
|
|
<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"> |
|
|
|
|
<NcButton type="ghost" size="small" class="nc-extdb-btn-import-url !rounded-md" |
|
|
|
|
@click.stop="importURLDlg = true"> |
|
|
|
|
{{ $t('activity.useConnectionUrl') }} |
|
|
|
|
</NcButton> |
|
|
|
|
</div> |
|
|
|
@ -601,7 +605,8 @@ const allowDataWrite = computed({
|
|
|
|
|
<span>{{ $t('tooltip.clientCert') }}</span> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<NcButton size="small" :disabled="!sslFilesRequired" class="shadow" @click="certFileInput?.click()"> |
|
|
|
|
<NcButton size="small" :disabled="!sslFilesRequired" class="shadow" |
|
|
|
|
@click="certFileInput?.click()"> |
|
|
|
|
{{ $t('labels.clientCert') }} |
|
|
|
|
</NcButton> |
|
|
|
|
</a-tooltip> |
|
|
|
@ -611,7 +616,8 @@ const allowDataWrite = computed({
|
|
|
|
|
<template #title> |
|
|
|
|
<span>{{ $t('tooltip.clientKey') }}</span> |
|
|
|
|
</template> |
|
|
|
|
<NcButton size="small" :disabled="!sslFilesRequired" class="shadow" @click="keyFileInput?.click()"> |
|
|
|
|
<NcButton size="small" :disabled="!sslFilesRequired" class="shadow" |
|
|
|
|
@click="keyFileInput?.click()"> |
|
|
|
|
{{ $t('labels.clientKey') }} |
|
|
|
|
</NcButton> |
|
|
|
|
</a-tooltip> |
|
|
|
@ -622,18 +628,22 @@ const allowDataWrite = computed({
|
|
|
|
|
<span>{{ $t('tooltip.clientCA') }}</span> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<NcButton size="small" :disabled="!sslFilesRequired" class="shadow" @click="caFileInput?.click()"> |
|
|
|
|
<NcButton size="small" :disabled="!sslFilesRequired" class="shadow" |
|
|
|
|
@click="caFileInput?.click()"> |
|
|
|
|
{{ $t('labels.serverCA') }} |
|
|
|
|
</NcButton> |
|
|
|
|
</a-tooltip> |
|
|
|
|
</div> |
|
|
|
|
</a-form-item> |
|
|
|
|
|
|
|
|
|
<input ref="caFileInput" type="file" class="!hidden" @change="onFileSelect(CertTypes.ca, caFileInput)" /> |
|
|
|
|
<input ref="caFileInput" type="file" class="!hidden" |
|
|
|
|
@change="onFileSelect(CertTypes.ca, caFileInput)"/> |
|
|
|
|
|
|
|
|
|
<input ref="certFileInput" type="file" class="!hidden" @change="onFileSelect(CertTypes.cert, certFileInput)" /> |
|
|
|
|
<input ref="certFileInput" type="file" class="!hidden" |
|
|
|
|
@change="onFileSelect(CertTypes.cert, certFileInput)"/> |
|
|
|
|
|
|
|
|
|
<input ref="keyFileInput" type="file" class="!hidden" @change="onFileSelect(CertTypes.key, keyFileInput)" /> |
|
|
|
|
<input ref="keyFileInput" type="file" class="!hidden" |
|
|
|
|
@change="onFileSelect(CertTypes.key, keyFileInput)"/> |
|
|
|
|
|
|
|
|
|
<a-divider/> |
|
|
|
|
|
|
|
|
@ -693,7 +703,8 @@ const allowDataWrite = computed({
|
|
|
|
|
dropdown-class-name="nc-dropdown-inflection-column-name" |
|
|
|
|
> |
|
|
|
|
<a-select-option v-for="tp in inflectionTypes" :key="tp" :value="tp" |
|
|
|
|
><div class="flex items-center gap-2 justify-between"> |
|
|
|
|
> |
|
|
|
|
<div class="flex items-center gap-2 justify-between"> |
|
|
|
|
<div>{{ tp }}</div> |
|
|
|
|
<component |
|
|
|
|
:is="iconMap.check" |
|
|
|
|