Browse Source

fix(nc-gui): add missing v-else condition

pull/9958/head
Ramesh Mane 5 days ago
parent
commit
788df21b24
  1. 18
      packages/nc-gui/components/smartsheet/column/EditOrAdd.vue

18
packages/nc-gui/components/smartsheet/column/EditOrAdd.vue

@ -1254,7 +1254,12 @@ watch(activeAiTab, (newValue) => {
</Transition> </Transition>
</template> </template>
<a-form-item v-if="enableDescription && !aiAutoSuggestMode"> <a-form-item
v-if="enableDescription && !aiAutoSuggestMode"
:class="{
'!pb-4': embedMode,
}"
>
<div class="flex gap-3 text-gray-800 h-7 mb-1 items-center justify-between"> <div class="flex gap-3 text-gray-800 h-7 mb-1 items-center justify-between">
<span class="text-[13px]"> <span class="text-[13px]">
{{ $t('labels.description') }} {{ $t('labels.description') }}
@ -1281,8 +1286,13 @@ watch(activeAiTab, (newValue) => {
</a-form-item> </a-form-item>
<template v-if="props.fromTableExplorer"> <template v-if="props.fromTableExplorer">
<a-form-item> <a-form-item
<NcButton v-if="!enableDescription" size="small" type="text" @click.stop="triggerDescriptionEnable"> v-if="!enableDescription"
:class="{
'!pb-4': embedMode,
}"
>
<NcButton size="small" type="text" @click.stop="triggerDescriptionEnable">
<div class="flex !text-gray-700 items-center gap-2"> <div class="flex !text-gray-700 items-center gap-2">
<GeneralIcon icon="plus" class="h-4 w-4" /> <GeneralIcon icon="plus" class="h-4 w-4" />
@ -1294,6 +1304,7 @@ watch(activeAiTab, (newValue) => {
</a-form-item> </a-form-item>
</template> </template>
<template v-else>
<div <div
class="flex items-center justify-between gap-2 empty:hidden" class="flex items-center justify-between gap-2 empty:hidden"
:class="{ :class="{
@ -1346,6 +1357,7 @@ watch(activeAiTab, (newValue) => {
</a-form-item> </a-form-item>
</div> </div>
</template> </template>
</template>
</a-form> </a-form>
</div> </div>
</template> </template>

Loading…
Cancel
Save