Simplify nodeStore, and make it part of the httpdStore

This commit is contained in:
Sebastian Martinez
2023-11-16 10:03:06 +01:00
parent 7f4af6fb72
commit 54be2b78e4
5 changed files with 14 additions and 113 deletions
+3 -2
View File
@@ -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={{