From c519084e78bbfd92b23f293a12c20c1a7e6a8fd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxi=20Quo=C3=9F?= Date: Sun, 5 Mar 2023 08:40:24 +0100 Subject: [PATCH] message is prerendered and cant be changed at runtime --- docker-compose.yml | 1 - frontend/src/components/Login.svelte | 5 ----- 2 files changed, 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index bb124514..e5c3efcd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,7 +12,6 @@ services: # - UPSNAP_INTERVAL=@every 10s # Sets the interval in which the devices are pinged # - UPSNAP_SCAN_RANGE=192.168.1.0/24 # Scan range is used for device discovery on local network # - UPSNAP_WEBSITE_TITLE=Custom name # Custom website title - # - UPSNAP_WELCOME_MESSAGE="Welcome to my wake on lan dashboard" # Show this message on the login form # you can change the listen ip:port inside the container like this: # entrypoint: /bin/sh -c "./upsnap serve --http 0.0.0.0:5000" # healthcheck: diff --git a/frontend/src/components/Login.svelte b/frontend/src/components/Login.svelte index 4c1d3f4c..fcb35861 100644 --- a/frontend/src/components/Login.svelte +++ b/frontend/src/components/Login.svelte @@ -10,7 +10,6 @@ title: '', msg: '' }; - const welcomeMsg = import.meta.env?.UPSNAP_WELCOME_MESSAGE || ''; async function login() { if (isAdmin) { @@ -51,10 +50,6 @@