Add pagination to NotificationsView
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user