mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Do not persist the selected datatable page number, as we always want to start at the first page after a page reload.
This commit is contained in:
parent
c27b02512f
commit
02134dc959
1 changed files with 6 additions and 1 deletions
|
@ -66,7 +66,12 @@ export default class extends Controller {
|
||||||
}
|
}
|
||||||
|
|
||||||
stateLoadCallback(settings) {
|
stateLoadCallback(settings) {
|
||||||
return JSON.parse( localStorage.getItem(this.getStateSaveKey()) );
|
const data = JSON.parse( localStorage.getItem(this.getStateSaveKey()) );
|
||||||
|
|
||||||
|
//Do not save the start value (current page), as we want to always start at the first page on a page reload
|
||||||
|
data.start = 0;
|
||||||
|
|
||||||
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
connect() {
|
connect() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue