Add pagination to NotificationsView

This commit is contained in:
Johannes Zellner
2026-01-23 14:24:31 +01:00
parent d0fb2583a5
commit e6806453e1
2 changed files with 36 additions and 5 deletions
+3 -2
View File
@@ -6,10 +6,11 @@ function create() {
const accessToken = localStorage.token;
return {
async list(acknowledged = null) {
async list(acknowledged = null, page = 1) {
const query = {
access_token: accessToken,
per_page: 10000
page,
per_page: 100
};
if (acknowledged !== null) query.acknowledged = !!acknowledged;