Browse Source

refactor(gui-v2): load expanded form component only if expanded

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3181/head
Pranav C 2 years ago
parent
commit
d5ed6c9eb2
  1. 2
      packages/nc-gui-v2/components/virtual-cell/components/ItemChip.vue
  2. 2
      packages/nc-gui-v2/components/virtual-cell/components/ListChildItems.vue

2
packages/nc-gui-v2/components/virtual-cell/components/ItemChip.vue

@ -43,7 +43,7 @@ export default {
<Suspense>
<ExpandedForm
v-if="!readonly"
v-if="!readonly && expandedFormDlg"
v-model="expandedFormDlg"
:row="{ row: item }"
:meta="relatedTableMeta"

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

@ -145,7 +145,7 @@ const expandedFormRow = ref()
<Suspense>
<ExpandedForm
v-if="expandedFormRow"
v-if="expandedFormRow && expandedFormDlg"
v-model="expandedFormDlg"
:row="{ row: expandedFormRow }"
:meta="relatedTableMeta"

Loading…
Cancel
Save