Browse Source

fix(gui-v2): block expand form in hared grid child list(hm/mm) modal

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3414/head
Pranav C 2 years ago
parent
commit
92d4da7152
  1. 4
      packages/nc-gui-v2/components/smartsheet/Gallery.vue
  2. 1
      packages/nc-gui-v2/components/virtual-cell/components/ListChildItems.vue
  3. 8
      packages/nc-gui-v2/composables/useLTARStore.ts

4
packages/nc-gui-v2/components/smartsheet/Gallery.vue

@ -203,10 +203,10 @@ openNewRecordFormHook?.on(async () => {
display: block;
font-size: 0;
height: 3px;
opacity: .3;
opacity: 0.3;
outline: none;
padding: 0;
transition: all .5s;
transition: all 0.5s;
width: 100%;
}
.ant-carousel.gallery-carousel :deep(.slick-dots li.slick-active div > div) {

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

@ -101,6 +101,7 @@ const expandedFormRow = ref()
class="!my-4 hover:(!bg-gray-200/50 shadow-md)"
@click="
() => {
if (readonly) return
expandedFormRow = row
expandedFormDlg = true
}

8
packages/nc-gui-v2/composables/useLTARStore.ts

@ -159,10 +159,11 @@ const [useProvideLTARStore, useLTARStore] = useInjectionState(
{
limit: String(childrenListPagination.size),
offset: String(childrenListPagination.size * (childrenListPagination.page - 1)),
where: childrenListPagination.query && `(${relatedTablePrimaryValueProp.value},like,${childrenListPagination.query})`,
where:
childrenListPagination.query && `(${relatedTablePrimaryValueProp.value},like,${childrenListPagination.query})`,
} as any,
)
}else{
} else {
childrenList.value = await $api.dbTableRow.nestedList(
NOCO,
(project?.value?.id || sharedView?.value?.view?.project_id) as string,
@ -173,7 +174,8 @@ const [useProvideLTARStore, useLTARStore] = useInjectionState(
{
limit: String(childrenListPagination.size),
offset: String(childrenListPagination.size * (childrenListPagination.page - 1)),
where: childrenListPagination.query && `(${relatedTablePrimaryValueProp.value},like,${childrenListPagination.query})`,
where:
childrenListPagination.query && `(${relatedTablePrimaryValueProp.value},like,${childrenListPagination.query})`,
} as any,
)
}

Loading…
Cancel
Save