Browse Source

fix(gui-v2): use relatedTableMeta.title instead

pull/3325/head
Wing-Kam Wong 2 years ago
parent
commit
623ff23689
  1. 4
      packages/nc-gui-v2/components/virtual-cell/components/ListChildItems.vue

4
packages/nc-gui-v2/components/virtual-cell/components/ListChildItems.vue

@ -31,7 +31,6 @@ const readonly = inject(ReadonlyInj, false)
const { const {
childrenList, childrenList,
meta,
deleteRelatedRow, deleteRelatedRow,
loadChildrenList, loadChildrenList,
childrenListPagination, childrenListPagination,
@ -85,13 +84,12 @@ const expandedFormRow = ref()
<div class="max-h-[max(calc(100vh_-_300px)_,500px)] flex flex-col py-6"> <div class="max-h-[max(calc(100vh_-_300px)_,500px)] flex flex-col py-6">
<div class="flex mb-4 items-center gap-2 px-12"> <div class="flex mb-4 items-center gap-2 px-12">
<div class="flex-1" /> <div class="flex-1" />
<MdiReload v-if="!isForm" class="cursor-pointer text-gray-500" @click="loadChildrenList" /> <MdiReload v-if="!isForm" class="cursor-pointer text-gray-500" @click="loadChildrenList" />
<a-button v-if="!readonly" type="primary" ghost class="!text-xs" size="small" @click="emit('attachRecord')"> <a-button v-if="!readonly" type="primary" ghost class="!text-xs" size="small" @click="emit('attachRecord')">
<div class="flex items-center gap-1"> <div class="flex items-center gap-1">
<MdiLinkVariantRemove class="text-xs" type="primary" @click="unlinkRow(row)" /> <MdiLinkVariantRemove class="text-xs" type="primary" @click="unlinkRow(row)" />
Link to '{{ meta.title }}' Link to '{{ relatedTableMeta.title }}'
</div> </div>
</a-button> </a-button>
</div> </div>

Loading…
Cancel
Save