continue: add pagination for notification page and some featur

This commit is contained in:
smanylov
2026-04-05 15:06:08 +07:00
parent 27ca7ddf8e
commit 1fe49c24e8
5 changed files with 222 additions and 75 deletions
+4 -4
View File
@@ -47,7 +47,7 @@ export async function fetchActiveNotifications() {
}
}
export async function fetchAllNotifications() {
export async function fetchAllNotifications(page: number = 0, size: number = 10) {
const token = await getSessionData('token');
try {
@@ -59,11 +59,11 @@ export async function fetchAllNotifications() {
message_body: {
action: 'list',
authToken: token,
page: 0,
size: 10,
page: page,
size: size,
sortBy: "createdAt",
sortDirection: "DESC",
types: [], //"SEARCH_RESULT", "MONITORING_RESULT"
types: [], //"SEARCH_RESULT", "MONITORING_RESULT"
statuses: [] //"NEW"
}
}),