3
0

Fix incTotal handling for listHelpers

This commit is contained in:
Jože Fortun 2023-06-13 14:15:31 +02:00
parent 3d1fa6d326
commit 0b01830a00
2 changed files with 3 additions and 8 deletions

View File

@ -79,7 +79,7 @@ export default {
/// To prevent extra list fetch, check if pageCursor is defined (not first page)
const refresh = this.$route.query.pageCursor !== this.pagination.pageCursor
this.pagination = { limit, pageCursor, prevPage, nextPage, total, page }
this.pagination = { ...this.pagination, limit, pageCursor, prevPage, nextPage, total, page }
// Sorting
let { sortBy = this.sorting.sortBy, sortDesc = this.sorting.sortDesc, ...r2 } = r1

View File

@ -29,7 +29,7 @@
clickable
sticky-header
hide-search
hide-total
:hide-total="!pagination.incTotal"
class="custom-resource-list-height-no-buttons"
@row-clicked="handleRowClicked"
>
@ -156,12 +156,7 @@ export default {
},
pagination: {
limit: 100,
pageCursor: undefined,
prevPage: '',
nextPage: '',
total: 0,
page: 1,
...this.pagination,
incTotal: false,
},