Fix record list pagination not working when records per page was set to 0

This commit is contained in:
Jože Fortun
2023-01-17 13:40:39 +01:00
parent 08c45c5ff2
commit 045da2eaa4
@@ -505,7 +505,7 @@
</div>
</div>
<div
v-if="showPageNavigation && !options.hidePaging && !inlineEditing"
v-if="!options.hidePaging && !inlineEditing"
>
<b-pagination
v-if="options.fullPageNavigation"
@@ -700,7 +700,7 @@ export default {
return {
from: ((page - 1) * perPage) + 1,
to: Math.min((page * perPage), count),
to: perPage > 0 ? Math.min((page * perPage), count) : count,
page,
perPage,
count,
@@ -715,10 +715,6 @@ export default {
return this.filter.nextPage
},
showPageNavigation () {
return this.hasNextPage || this.hasPrevPage
},
editing () {
return this.mode === 'editor'
},