diff --git a/dashboard/src/components/Headerbar.vue b/dashboard/src/components/Headerbar.vue index ec6108440..356763a28 100644 --- a/dashboard/src/components/Headerbar.vue +++ b/dashboard/src/components/Headerbar.vue @@ -52,7 +52,7 @@ async function onMarkNotificationRead(notification) { async function onMarkAllNotificationRead() { notificationsAllBusy.value = true; - await eachLimit(notifications.value, 2, async (notification) => { + await eachLimit(notifications.value, 5, async (notification) => { notification.busy = true; const [error] = await notificationModel.update(notification.id, true); if (error) return window.cloudron.onError(error); diff --git a/dashboard/src/models/NotificationsModel.js b/dashboard/src/models/NotificationsModel.js index ad7e9a54d..b9a01050e 100644 --- a/dashboard/src/models/NotificationsModel.js +++ b/dashboard/src/models/NotificationsModel.js @@ -9,7 +9,7 @@ function create() { async list(acknowledged = false) { let result; try { - result = await fetcher.get(`${API_ORIGIN}/api/v1/notifications`, { acknowledged, access_token: accessToken, per_page: 100 }); + result = await fetcher.get(`${API_ORIGIN}/api/v1/notifications`, { acknowledged, access_token: accessToken, per_page: 1000 }); } catch (e) { return [e]; }