Store page size on manage and request pages

This commit is contained in:
Lars van Rhijn
2023-10-04 20:41:00 +02:00
parent c061d1c304
commit 7a1b0583a6
4 changed files with 37 additions and 4 deletions

View File

@ -425,6 +425,7 @@
this.page_size = 10;
}
this.page_number = 1;
setCookie("REQUEST_PAGE_SIZE", this.page_size, 14);
this.search();
}
}
@ -455,6 +456,10 @@
tata.error("", "An unknown error occurred, please try again.")
}
});
const stored_page_size = parseInt(getCookie("REQUEST_PAGE_SIZE"));
if (stored_page_size !== Number.NaN && stored_page_size > 0) {
this.page_size = stored_page_size;
}
},
methods: {
search() {