mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 02:00:31 +08:00
Make visibility in the repoSchema required
This commit is contained in:
@@ -41,7 +41,7 @@ const repoSchema = object({
|
||||
visibility: union([
|
||||
object({ type: literal("public") }),
|
||||
object({ type: literal("private"), allow: optional(array(string())) }),
|
||||
]).optional(),
|
||||
]),
|
||||
patches: object({
|
||||
open: number(),
|
||||
draft: number(),
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
$: repo = repoInfo.repo;
|
||||
$: project = repoInfo.repo["xyz.radicle.project"];
|
||||
$: baseUrl = repoInfo.baseUrl;
|
||||
$: isPrivate = repo.visibility?.type === "private";
|
||||
$: isPrivate = repo.visibility.type === "private";
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
</span>
|
||||
</Link>
|
||||
</span>
|
||||
{#if repo.visibility && repo.visibility.type === "private"}
|
||||
{#if repo.visibility.type === "private"}
|
||||
<Badge variant="yellow" size="tiny">
|
||||
<Icon name="lock" />
|
||||
Private
|
||||
|
||||
Reference in New Issue
Block a user