This commit is contained in:
@@ -105,16 +105,11 @@ export default {
|
||||
Limit: 100,
|
||||
Offset: 0
|
||||
};
|
||||
//fixup paging based on settings
|
||||
//calculate paging based on settings
|
||||
const { page, itemsPerPage } = that.options;
|
||||
if (
|
||||
this.localFormSettings.pagination.itemsPerPage &&
|
||||
this.localFormSettings.pagination.itemsPerPage > 0
|
||||
) {
|
||||
listOptions.offset =
|
||||
(this.localFormSettings.pagination.page - 1) *
|
||||
this.localFormSettings.pagination.itemsPerPage;
|
||||
listOptions.limit = this.localFormSettings.pagination.itemsPerPage;
|
||||
if (itemsPerPage && itemsPerPage > 0) {
|
||||
listOptions.Offset = (page - 1) * itemsPerPage;
|
||||
listOptions.Limit = itemsPerPage;
|
||||
}
|
||||
|
||||
//is there a filter?
|
||||
|
||||
Reference in New Issue
Block a user