luyadev / luya-module-admin

Administration base module for all LUYA admin modules
https://luya.io
MIT License
48 stars 56 forks source link

A small bug in Index plugin #498

Open Antikon opened 4 years ago

Antikon commented 4 years ago

We have 150 records in a CRUD list view. The paginationSize is 100.

We are on the first page. Index plugin generates row numbers from 1 to 100. Now click on the "Next page" arrow.

All row number from Index plugin will instantly increase by 100 (so the last one becomes 200). Then, when the data for the next page is received from the server, the numbering will become normal.

It seems like we need to somehow track the change in the $page variable only after page load.

nadar commented 4 years ago

Thanks for the report. for the sake of completeness: https://luya.io/api/luya-admin-ngrest-plugins-Index