message is prerendered and cant be changed at runtime

This commit is contained in:
Maxi Quoß
2023-03-05 08:40:24 +01:00
parent 0d9a743b09
commit c519084e78
2 changed files with 0 additions and 6 deletions

View File

@@ -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:

View File

@@ -10,7 +10,6 @@
title: '',
msg: ''
};
const welcomeMsg = import.meta.env?.UPSNAP_WELCOME_MESSAGE || '';
async function login() {
if (isAdmin) {
@@ -51,10 +50,6 @@
</div>
<div class="row justify-content-center align-items-center p-2">
<div class="col-md-6 col-lg-5 p-4 login rounded-5 shadow-sm">
{#if welcomeMsg !== ''}
<h5 class="text-center fw-bold">{welcomeMsg}</h5>
<hr />
{/if}
<form class="w-100" on:submit|preventDefault={login}>
<div class="mb-3">
<label for="username" class="form-label">Username or email address</label>