continue: add pagination for notification page and some featur
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user