mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-02 21:56:51 +00:00
Nc feat/Readonly source followup (#8795)
* feat: allow partial column update (GUI) * feat: allow partial column update (backend) * refactor: swagger schema description correction * feat: allow edit from multi field editor * fix: allow meta update in api level * fix: add tooltip and docs link * fix: multi field editor corrections * fix: allow table meta update * fix: allow table meta update * fix: allow column validation update * fix: block adding new option directly from cell * fix: add tooltip for column menu options * refactor: tooltips * test: replace index with count as parameter * fix: corrections * refactor: hint text update
This commit is contained in:
@@ -401,7 +401,7 @@ const allowDataWrite = computed({
|
||||
<div class="edit-source bg-white relative flex flex-col justify-start gap-2 w-full p-2">
|
||||
<h1 class="prose-2xl font-bold self-start">{{ $t('activity.editSource') }}</h1>
|
||||
|
||||
<a-form ref="form" :model="formState" name="external-base-create-form" layout="horizontal" no-style :label-col="{ span: 8 }">
|
||||
<a-form ref="form" :model="formState" name="external-base-create-form" layout="horizontal" no-style :label-col="{ span: 5 }">
|
||||
<div
|
||||
class="nc-scrollbar-md"
|
||||
:style="{
|
||||
@@ -563,50 +563,10 @@ 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">
|
||||
<span>
|
||||
{{ $t('labels.allowMetaWrite') }}
|
||||
</span>
|
||||
<NcTooltip>
|
||||
<template #title>
|
||||
<span>{{ $t('tooltip.allowMetaWrite') }}</span>
|
||||
</template>
|
||||
<GeneralIcon class="text-gray-500" icon="info" />
|
||||
</NcTooltip>
|
||||
</div>
|
||||
</template>
|
||||
<a-switch v-model:checked="allowMetaWrite" data-testid="nc-allow-meta-write" size="small"></a-switch>
|
||||
</a-form-item>
|
||||
<a-form-item>
|
||||
<template #label>
|
||||
<div class="flex gap-1 justify-end">
|
||||
<span>
|
||||
{{ $t('labels.allowDataWrite') }}
|
||||
</span>
|
||||
<NcTooltip>
|
||||
<template #title>
|
||||
<span>{{ $t('tooltip.allowDataWrite') }}</span>
|
||||
</template>
|
||||
<GeneralIcon class="text-gray-500" icon="info" />
|
||||
</NcTooltip>
|
||||
</div>
|
||||
</template>
|
||||
<div class="flex justify-start">
|
||||
<NcTooltip :disabled="!allowMetaWrite" placement="topLeft">
|
||||
<template #title>
|
||||
{{ $t('tooltip.dataWriteOptionDisabled') }}
|
||||
</template>
|
||||
<a-switch
|
||||
v-model:checked="allowDataWrite"
|
||||
:disabled="allowMetaWrite"
|
||||
data-testid="nc-allow-data-write"
|
||||
size="small"
|
||||
></a-switch>
|
||||
</NcTooltip>
|
||||
</div>
|
||||
</a-form-item>
|
||||
<DashboardSettingsDataSourcesSourceRestrictions
|
||||
v-model:allowMetaWrite="allowMetaWrite"
|
||||
v-model:allowDataWrite="allowDataWrite"
|
||||
/>
|
||||
<template
|
||||
v-if="
|
||||
formState.dataSource.client !== ClientType.SQLITE &&
|
||||
|
||||
Reference in New Issue
Block a user