From f9a63a87241408efdc4bb9d345765ae4f6d52bbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thea=20Sch=C3=B6bl?= Date: Fri, 8 Dec 2023 22:55:33 +0100 Subject: [PATCH] fix: warn users if no device is connected fix: can't backup without a device --- src/routes/Footer.svelte | 29 ++++++++++++++++++++++----- src/routes/Navigation.svelte | 16 +++++++-------- src/routes/config/+layout.svelte | 17 ---------------- src/routes/config/layout/+page.svelte | 2 +- 4 files changed, 32 insertions(+), 32 deletions(-) delete mode 100644 src/routes/config/+layout.svelte diff --git a/src/routes/Footer.svelte b/src/routes/Footer.svelte index ae838526..2993c967 100644 --- a/src/routes/Footer.svelte +++ b/src/routes/Footer.svelte @@ -8,6 +8,7 @@ import {loadLocaleAsync} from "../i18n/i18n-util.async" import {tick} from "svelte" import SyncOverlay from "./SyncOverlay.svelte" + import {serialPort} from "$lib/serial/connection" let locale = (browser && (localStorage.getItem("locale") as Locales)) || detectLocale() $: if (browser) @@ -46,9 +47,14 @@ > - - - +
+ {#if !$serialPort} +
+ warning{$LL.deviceManager.NO_DEVICE()} +
+ {/if} + +