From 657f90002fba79d54260a25b03b4892c0e2ac657 Mon Sep 17 00:00:00 2001 From: Sindre Kjelsrud Date: Sun, 14 Jan 2024 16:22:59 +0100 Subject: [PATCH] :children_crossing: notify user of submitted evaluation Co-authored-by: haraldnilsen Signed-off-by: Sindre Kjelsrud --- frontend/src/routes/evaluation/+page.svelte | 28 +++++++++++++++------ 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/frontend/src/routes/evaluation/+page.svelte b/frontend/src/routes/evaluation/+page.svelte index 4fccf01..2862e7e 100644 --- a/frontend/src/routes/evaluation/+page.svelte +++ b/frontend/src/routes/evaluation/+page.svelte @@ -3,11 +3,12 @@ import { goto } from "$app/navigation"; let evaluationText:string = "" + let submittedEval: boolean = false const handleEvaluationSubmit = async () => { if (evaluationText) { await postEvaluationData(evaluationText) - goto("/") + submittedEval = true } else { console.log("error"); } @@ -22,13 +23,24 @@

Har du tid så setter vi veldig pris på om du skrevet en liten tilbakemelding til oss i tekstfeltet under:

-
- - +
+ {:else} +
+

Takk for tilbakemeldingen!

+
+ {/if} +
+