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:38:38 +01:00
parent 7185611647
commit ced227deea
@@ -517,7 +517,7 @@
</div>
</div>
<div
v-if="showPageNavigation && !options.hidePaging && !inlineEditing"
v-if="!options.hidePaging && !inlineEditing"
>
<b-pagination
v-if="options.fullPageNavigation"
@@ -715,7 +715,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,
@@ -730,10 +730,6 @@ export default {
return this.filter.nextPage
},
showPageNavigation () {
return this.hasNextPage || this.hasPrevPage
},
editing () {
return this.mode === 'editor'
},