mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 10:10:30 +08:00
Simplify nodeStore, and make it part of the httpdStore
This commit is contained in:
@@ -4,7 +4,8 @@
|
||||
import { HttpdClient } from "@httpd-client";
|
||||
import { ISSUES_PER_PAGE } from "./router";
|
||||
import { closeFocused } from "@app/components/Popover.svelte";
|
||||
import { authenticatedLocal } from "@app/lib/httpd";
|
||||
import { httpdStore } from "@app/lib/httpd";
|
||||
import { isLocal } from "@app/lib/utils";
|
||||
|
||||
import Button from "@app/components/Button.svelte";
|
||||
import DropdownList from "@app/components/DropdownList.svelte";
|
||||
@@ -125,7 +126,7 @@
|
||||
</Link>
|
||||
</DropdownList>
|
||||
</Popover>
|
||||
{#if $authenticatedLocal(baseUrl.hostname)}
|
||||
{#if $httpdStore.state === "authenticated" && isLocal(baseUrl.hostname)}
|
||||
<div style="margin-left: auto;">
|
||||
<Link
|
||||
route={{
|
||||
|
||||
Reference in New Issue
Block a user