From ec0bf7ed05ef5c08623aa8535a16210f869d275e Mon Sep 17 00:00:00 2001 From: derGraph Date: Mon, 19 Aug 2024 18:31:02 +0200 Subject: [PATCH 1/2] remove unused Leaflet.css --- src/lib/Leaflet.css | 0 src/lib/Leaflet.svelte | 1 - 2 files changed, 1 deletion(-) delete mode 100755 src/lib/Leaflet.css diff --git a/src/lib/Leaflet.css b/src/lib/Leaflet.css deleted file mode 100755 index e69de29..0000000 diff --git a/src/lib/Leaflet.svelte b/src/lib/Leaflet.svelte index b3926e7..060465d 100755 --- a/src/lib/Leaflet.svelte +++ b/src/lib/Leaflet.svelte @@ -1,6 +1,5 @@ @@ -90,6 +95,27 @@ + {#if $errorStore.status && $errorStore.status != 200} +
+ +
+ {/if}
+ import errorStore from '$lib/errorStore.js'; export let form; - function resetForm() { - form!.error = ''; + $: if(form?.error){ + $errorStore = new Response(JSON.stringify({ + message: form.error + }), { + statusText: "Bad request!", + status: 400 + }); }

Sign in!

- {#if form?.error} - - {/if}