Mark private repos with a lock in the sidebar

This commit is contained in:
Rūdolfs Ošiņš
2026-09-09 14:51:14 +02:00
parent 5f86b10f05
commit 4c899537ab
4 changed files with 13 additions and 1 deletions
@@ -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 };
+1
View File
@@ -18,6 +18,7 @@ pub struct RepoSummary {
#[ts(as = "String")]
pub rid: identity::RepoId,
pub name: String,
pub private: bool,
}
#[derive(Serialize, TS)]
+1
View File
@@ -408,6 +408,7 @@ pub trait Repo: Profile {
entries.push(repo::RepoSummary {
rid,
name: data.name,
private: doc.is_private(),
});
}