Files
radicle-explorer/src/components/RepoListSwitch.svelte
T
Rūdolfs Ošiņš 092f3354ee 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.
2026-09-09 14:51:21 +02:00

31 lines
580 B
Svelte

<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>