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