Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
crlssn committed Nov 28, 2024
1 parent d61dcb1 commit 988649b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions web/src/ui/components/NavigationMobile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ const navigation = [
const fetchUnreadNotifications = async () => {
const req = create(ListNotificationsRequestSchema, {
onlyUnread: true,
markAsRead: false,
pagination: {
pageLimit: 1,
} as PaginationRequest
} as PaginationRequest,
unreadOnly: true,
})
const res = await UserClient.listNotifications(req)
unreadCount.value = Number(res.pagination?.totalResults)
Expand Down
3 changes: 2 additions & 1 deletion web/src/ui/notifications/ListNotifications.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ const pageToken = ref(new Uint8Array(0))
const fetchUnreadNotifications = async () => {
const req = create(ListNotificationsRequestSchema, {
onlyUnread: false,
markAsRead: true,
pagination: {
pageLimit: 100,
pageToken: pageToken.value,
} as PaginationRequest,
unreadOnly: false,
})
const res = await UserClient.listNotifications(req)
Expand Down

0 comments on commit 988649b

Please sign in to comment.