mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-02 10:10:28 +08:00
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.
31 lines
580 B
Svelte
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>
|