From d213069683aa6c76e6ae483902d3cd102bf705b6 Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Mon, 8 Jan 2024 15:37:04 +0100 Subject: [PATCH] Add local node switch and disclaimer --- src/views/projects/Sidebar.svelte | 70 +++++++++++++++++++++++-------- 1 file changed, 52 insertions(+), 18 deletions(-) diff --git a/src/views/projects/Sidebar.svelte b/src/views/projects/Sidebar.svelte index 76fff55178..d2b37bbee3 100644 --- a/src/views/projects/Sidebar.svelte +++ b/src/views/projects/Sidebar.svelte @@ -13,9 +13,13 @@ import Link from "@app/components/Link.svelte"; import Popover from "@app/components/Popover.svelte"; + import ExternalLink from "@app/components/ExternalLink.svelte"; import Help from "@app/App/Help.svelte"; import Settings from "@app/App/Settings.svelte"; + import { api } from "@app/lib/httpd"; + import { isLocal } from "@app/lib/utils"; + const SIDEBAR_STATE_KEY = "sidebarState"; export let activeTab: ActiveTab | undefined = undefined; @@ -99,11 +103,17 @@ width: 100%; gap: 0.25rem; } + .remote-disclaimer { + padding: 1rem; + background-color: var(--color-background-float); + border: 1px solid var(--color-border-hint); + border-radius: var(--border-radius-small); + }