Show seed policy and scope in "online" button

This commit is contained in:
Rūdolfs Ošiņš
2024-02-23 11:37:01 +00:00
parent 1471fb1709
commit 3cfddf8647
5 changed files with 68 additions and 28 deletions
@@ -0,0 +1,17 @@
<script lang="ts">
import type { Scope, Policy } from "@httpd-client";
export let scope: Scope;
export let policy: Policy;
</script>
{#if policy === "allow"}
All discovered repositories will get seeded,
{:else if policy === "block"}
Only repositories marked as such will get seeded,
{/if}
{#if scope === "all"}
and all changes in those repos, made by any peer, will be synced.
{:else if scope === "followed"}
and only changes made by explicitly followed peers will be synced.
{/if}