Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Add You to your alias in peer selector
Sebastian Martinez committed 2 years ago
commit 7420c7ade6eaadd119a1d3505cd7d8efd9400704
parent 187a67e03e2a2817c464d07e2761b56e216e7af7
1 file changed +9 -0
modified src/views/projects/Source/PeerSelector.svelte
@@ -4,6 +4,7 @@

  import { closeFocused } from "@app/components/Popover.svelte";
  import { formatNodeId } from "@app/lib/utils";
+
  import { httpdStore } from "@app/lib/httpd";

  import NodeId from "@app/components/NodeId.svelte";
  import Badge from "@app/components/Badge.svelte";
@@ -92,6 +93,14 @@
              class:no-alias={!item.remote.alias}>
              {item.remote.alias || formatNodeId(item.remote.id)}
            </span>
+
            {#if $httpdStore.state !== "stopped" && item.remote.id === $httpdStore.node.id}
+
              <Badge
+
                style="background-color: var(--color-fill-ghost-hover)"
+
                variant="neutral"
+
                size="tiny">
+
                You
+
              </Badge>
+
            {/if}
            {#if item.remote.delegate}
              <Badge size="tiny" variant="delegate">
                <IconSmall name="badge" />