mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 02:00:31 +08:00
Fix repo listing not displaying all repos
`Show::All` which is the default value should return all values obtained from `storage.repositories()`. This commit adds a `Show::Contributor` enum variant to only get repos that the user has forked, initialized or contributed in some way.
This commit is contained in:
@@ -17,7 +17,7 @@ import {
|
||||
loadPatches,
|
||||
} from "@app/views/repo/router";
|
||||
|
||||
export type HomeReposTab = "delegate" | "private";
|
||||
export type HomeReposTab = "delegate" | "private" | "contributor";
|
||||
|
||||
export interface HomeInboxTab {
|
||||
rid: string;
|
||||
@@ -106,6 +106,8 @@ export async function loadRoute(
|
||||
if (route.resource === "home") {
|
||||
if (route.activeTab === "delegate") {
|
||||
show = "delegate";
|
||||
} else if (route.activeTab === "contributor") {
|
||||
show = "contributor";
|
||||
} else if (route.activeTab === "private") {
|
||||
show = "private";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user