Fix incTotal handling for listHelpers
This commit is contained in:
parent
3d1fa6d326
commit
0b01830a00
@ -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
|
||||
|
||||
@ -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,
|
||||
},
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user