Fix record list pagination not working when records per page was set to 0
This commit is contained in:
@@ -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'
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user