mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 22:30:41 +08:00
Distinguish local repos from seeded ones
A repository can sit in storage without being seeded, which `rad ls` hides and `rad ls --all` shows as "local". A new Settings preference picks the `Show` passed to `list_repos_summary`, defaulting to seeded.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { disableHide, enableHide, hide } from "@app/lib/modal";
|
||||
import { repoListScope } from "@app/lib/repoListScope";
|
||||
|
||||
import Button from "@app/components/Button.svelte";
|
||||
import Checkbox from "@app/components/Checkbox.svelte";
|
||||
@@ -146,8 +147,10 @@
|
||||
<span class="note-icon"><Icon name="seed" /></span>
|
||||
<div class="note-body">
|
||||
<span>
|
||||
Your node stops replicating and announcing this repository, and it
|
||||
leaves the sidebar.
|
||||
Your node stops replicating and announcing this repository{repoListScope.value ===
|
||||
"seeded"
|
||||
? ", and it leaves the sidebar."
|
||||
: "; the sidebar dims it."}
|
||||
{#if !clean}
|
||||
The files stay on disk.
|
||||
{/if}
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
import ExternalLink from "@app/components/ExternalLink.svelte";
|
||||
import FontSizeSwitch from "@app/components/FontSizeSwitch.svelte";
|
||||
import Icon from "@app/components/Icon.svelte";
|
||||
import RepoListSwitch from "@app/components/RepoListSwitch.svelte";
|
||||
import SegmentedSwitch from "@app/components/SegmentedSwitch.svelte";
|
||||
import ThemeSwitch from "@app/components/ThemeSwitch.svelte";
|
||||
import UpdateSwitch from "@app/components/UpdateSwitch.svelte";
|
||||
@@ -151,6 +152,15 @@
|
||||
</div>
|
||||
<FontSizeSwitch />
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="row-label">
|
||||
<span class="row-title">Repository list</span>
|
||||
<span class="row-description">
|
||||
List only the repositories you seed, or everything in local storage
|
||||
</span>
|
||||
</div>
|
||||
<RepoListSwitch />
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="row-label">
|
||||
<span class="row-title">Notification badge</span>
|
||||
|
||||
Reference in New Issue
Block a user