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. 6
      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; display: block;
font-size: 0; font-size: 0;
height: 3px; height: 3px;
opacity: .3; opacity: 0.3;
outline: none; outline: none;
padding: 0; padding: 0;
transition: all .5s; transition: all 0.5s;
width: 100%; width: 100%;
} }
.ant-carousel.gallery-carousel :deep(.slick-dots li.slick-active div > div) { .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)" class="!my-4 hover:(!bg-gray-200/50 shadow-md)"
@click=" @click="
() => { () => {
if (readonly) return
expandedFormRow = row expandedFormRow = row
expandedFormDlg = true expandedFormDlg = true
} }

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

@ -159,7 +159,8 @@ const [useProvideLTARStore, useLTARStore] = useInjectionState(
{ {
limit: String(childrenListPagination.size), limit: String(childrenListPagination.size),
offset: String(childrenListPagination.size * (childrenListPagination.page - 1)), 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, } as any,
) )
} else { } else {
@ -173,7 +174,8 @@ const [useProvideLTARStore, useLTARStore] = useInjectionState(
{ {
limit: String(childrenListPagination.size), limit: String(childrenListPagination.size),
offset: String(childrenListPagination.size * (childrenListPagination.page - 1)), 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, } as any,
) )
} }

Loading…
Cancel
Save