mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-25 04:05:26 +00:00
Merge pull request #3657 from nocodb/fix/3649-expanded-form-bugs
Fix: Expanded form - hide reload and virtual columns if new record
This commit is contained in:
@@ -55,7 +55,7 @@ const iconColor = '#1890ff'
|
||||
<template #title>
|
||||
<div class="text-center w-full">{{ $t('general.reload') }}</div>
|
||||
</template>
|
||||
<mdi-reload class="cursor-pointer select-none text-gray-500" @click="loadRow" />
|
||||
<mdi-reload v-if="!isNew" class="cursor-pointer select-none text-gray-500" @click="loadRow" />
|
||||
</a-tooltip>
|
||||
<a-tooltip v-if="!isSqlView" placement="bottom">
|
||||
<!-- Toggle comments draw -->
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import type { TableType, ViewType } from 'nocodb-sdk'
|
||||
import { isSystemColumn, isVirtualCol } from 'nocodb-sdk'
|
||||
import { UITypes, isSystemColumn, isVirtualCol } from 'nocodb-sdk'
|
||||
import type { Ref } from 'vue'
|
||||
import Cell from '../Cell.vue'
|
||||
import VirtualCell from '../VirtualCell.vue'
|
||||
@@ -115,7 +115,13 @@ export default {
|
||||
<div class="flex h-full nc-form-wrapper items-stretch min-h-[max(70vh,100%)]">
|
||||
<div class="flex-1 overflow-auto scrollbar-thin-dull">
|
||||
<div class="w-[500px] mx-auto">
|
||||
<div v-for="col of fields" :key="col.title" class="mt-2 py-2" :class="`nc-expand-col-${col.title}`">
|
||||
<div
|
||||
v-for="col of fields"
|
||||
v-show="!isVirtualCol(col) || !isNew || col.uidt === UITypes.LinkToAnotherRecord"
|
||||
:key="col.title"
|
||||
class="mt-2 py-2"
|
||||
:class="`nc-expand-col-${col.title}`"
|
||||
>
|
||||
<SmartsheetHeaderVirtualCell v-if="isVirtualCol(col)" :column="col" />
|
||||
|
||||
<SmartsheetHeaderCell v-else :column="col" />
|
||||
|
||||
Reference in New Issue
Block a user