diff --git a/src/views/Completed.vue b/src/views/Completed.vue index 9154912a..606f6206 100644 --- a/src/views/Completed.vue +++ b/src/views/Completed.vue @@ -156,7 +156,7 @@ - + @@ -310,6 +310,10 @@ export default defineComponent({ } }, async loadMoreCompletedOrders(event: any) { + // Added this check here as if added on infinite-scroll component the Loading content does not gets displayed + if (!(this.isScrollingEnabled && this.isCompletedOrderScrollable())) { + await event.target.complete(); + } const completedOrdersQuery = JSON.parse(JSON.stringify(this.completedOrders.query)) completedOrdersQuery.viewIndex++; await this.store.dispatch('order/updateCompletedOrderIndex', { ...completedOrdersQuery }) diff --git a/src/views/InProgress.vue b/src/views/InProgress.vue index 05db26ef..bb3d99eb 100644 --- a/src/views/InProgress.vue +++ b/src/views/InProgress.vue @@ -218,7 +218,7 @@ - + @@ -972,6 +972,10 @@ export default defineComponent({ } }, async loadMoreInProgressOrders(event: any) { + // Added this check here as if added on infinite-scroll component the Loading content does not gets displayed + if (!(this.isScrollingEnabled && this.isInProgressOrderScrollable())) { + await event.target.complete(); + } const inProgressOrdersQuery = JSON.parse(JSON.stringify(this.inProgressOrders.query)) inProgressOrdersQuery.viewIndex++; await this.store.dispatch('order/updateInProgressIndex', { ...inProgressOrdersQuery }) diff --git a/src/views/OpenOrders.vue b/src/views/OpenOrders.vue index e3470cde..0ca12b58 100644 --- a/src/views/OpenOrders.vue +++ b/src/views/OpenOrders.vue @@ -123,7 +123,7 @@ --> - + @@ -252,6 +252,10 @@ export default defineComponent({ } }, async loadMoreOpenOrders(event: any) { + // Added this check here as if added on infinite-scroll component the Loading content does not gets displayed + if (!(this.isScrollingEnabled && this.isOpenOrdersScrollable())) { + await event.target.complete(); + } const openOrdersQuery = JSON.parse(JSON.stringify(this.openOrders.query)) openOrdersQuery.viewIndex++; await this.store.dispatch('order/updateOpenOrderIndex', { ...openOrdersQuery }) diff --git a/src/views/TransferOrders.vue b/src/views/TransferOrders.vue index 7979f91f..d39307b8 100644 --- a/src/views/TransferOrders.vue +++ b/src/views/TransferOrders.vue @@ -38,7 +38,7 @@ If we do not define an extra variable and just use v-show to check for `isScrollable` then when coming back to the page infinite-scroll is called programatically. We have added an ionScroll event on ionContent to check whether the infiniteScroll can be enabled or not by toggling the value of isScrollingEnabled whenever the height < 0. --> - + @@ -130,6 +130,10 @@ export default defineComponent({ } }, async loadMoreTransferOrders(event: any) { + // Added this check here as if added on infinite-scroll component the Loading content does not gets displayed + if (!(this.isScrollingEnabled && this.isTransferOrdersScrollable())) { + await event.target.complete(); + } const transferOrdersQuery = JSON.parse(JSON.stringify(this.transferOrders.query)) transferOrdersQuery.viewIndex = this.transferOrders.list?.length / (process.env.VUE_APP_VIEW_SIZE as any); await this.store.dispatch('transferorder/updateTransferOrderQuery', { ...transferOrdersQuery })