Browse Source

fix: hide fields in shared views

pull/6360/head
DarkPhoenix2704 1 year ago
parent
commit
08be97f984
  1. 3
      packages/nc-gui/components/virtual-cell/components/ListChildItems.vue
  2. 2
      packages/nc-gui/components/virtual-cell/components/ListItem.vue

3
packages/nc-gui/components/virtual-cell/components/ListChildItems.vue

@ -106,7 +106,7 @@ const relation = computed(() => {
watch(
() => props.cellValue,
() => {
if (!isNew.value) loadChildrenList()
if (isNew.value) loadChildrenList()
},
)
@ -178,6 +178,7 @@ watch(expandedFormDlg, () => {
@expand="onClick(refRow)"
@click="
() => {
if (isPublic && !isForm) return
isNew
? unlinkRow(refRow, Number.parseInt(id))
: isChildrenListLinked[Number.parseInt(id)]

2
packages/nc-gui/components/virtual-cell/components/ListItem.vue

@ -88,7 +88,7 @@ const attachments: Attachment[] = computed(() => {
/>
</div>
<div v-if="fields.length > 0 && !isForm" class="flex flex-row gap-4 w-10/12">
<div v-if="fields.length > 0 && !isPublic" class="flex flex-row gap-4 w-10/12">
<div v-for="field in fields" :key="field.id" :class="attachment ? 'w-1/3' : 'w-1/4'">
<div class="flex flex-col gap-[-1] max-w-72">
<LazySmartsheetHeaderVirtualCell

Loading…
Cancel
Save