mirror of
https://seed.radicle.dev/rad:z4D5UCArafTzTQpDZNQRuqswh3ury.git
synced 2026-10-18 19:10:45 +08:00
Mark private repos with a lock in the sidebar
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type RepoSummary = { rid: string; name: string };
|
||||
export type RepoSummary = { rid: string; name: string; private: boolean };
|
||||
|
||||
@@ -18,6 +18,7 @@ pub struct RepoSummary {
|
||||
#[ts(as = "String")]
|
||||
pub rid: identity::RepoId,
|
||||
pub name: String,
|
||||
pub private: bool,
|
||||
}
|
||||
|
||||
#[derive(Serialize, TS)]
|
||||
|
||||
@@ -408,6 +408,7 @@ pub trait Repo: Profile {
|
||||
entries.push(repo::RepoSummary {
|
||||
rid,
|
||||
name: data.name,
|
||||
private: doc.is_private(),
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user