mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 14:20:42 +08:00
desktop: Sync the notification count
The backend now tells the frontend whenever the notifications database changes, which covers notifications the node writes as it fetches as well as clears by another instance of the app or the `rad` CLI, which have no node event. The inbox reloads in place, keeping the rows in view where they are.
This commit is contained in:
@@ -40,7 +40,12 @@ export const keys = {
|
||||
boards: (rid: string) => ["repo", rid, "boards"] as const,
|
||||
jobs: (rid: string) => ["repo", rid, "jobs"] as const,
|
||||
repos: () => ["repos"] as const,
|
||||
// The repository list for one scope, with the seeded repositories that
|
||||
// haven't arrived yet.
|
||||
repoList: (scope: string) => ["repos", scope] as const,
|
||||
notifications: () => ["notifications"] as const,
|
||||
notificationCount: () => ["notifications", "count"] as const,
|
||||
notificationList: () => ["notifications", "list"] as const,
|
||||
};
|
||||
|
||||
// Lists of CI jobs, which scanning every job COB of a repository builds.
|
||||
|
||||
Reference in New Issue
Block a user