mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 02:00:31 +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:
@@ -0,0 +1,30 @@
|
||||
<script lang="ts">
|
||||
import { repoListScope } from "@app/lib/repoListScope";
|
||||
|
||||
import Button from "@app/components/Button.svelte";
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="container">
|
||||
<Button
|
||||
variant="ghost"
|
||||
flatRight
|
||||
active={repoListScope.value === "seeded"}
|
||||
onclick={() => (repoListScope.value = "seeded")}>
|
||||
Seeded
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
variant="ghost"
|
||||
flatLeft
|
||||
active={repoListScope.value === "all"}
|
||||
onclick={() => (repoListScope.value = "all")}>
|
||||
All
|
||||
</Button>
|
||||
</div>
|
||||
Reference in New Issue
Block a user