From 0a35277c33e37289a37d741c3fabc88ba3d01c18 Mon Sep 17 00:00:00 2001 From: Mawoka Date: Wed, 15 Jun 2022 18:37:59 +0200 Subject: [PATCH] :sparkles: Added info ic quiz is imported or not --- frontend/src/routes/view/[quiz_id].svelte | 52 +++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/frontend/src/routes/view/[quiz_id].svelte b/frontend/src/routes/view/[quiz_id].svelte index 403f6f5..5d30ad6 100644 --- a/frontend/src/routes/view/[quiz_id].svelte +++ b/frontend/src/routes/view/[quiz_id].svelte @@ -59,6 +59,7 @@ created_at: string; updated_at: string; user_id: string; + imported_from_kahoot?: boolean; questions: Question[]; } @@ -92,6 +93,57 @@

{quiz.description}

+
+ {#if quiz.imported_from_kahoot === true} + + + + {:else if quiz.imported_from_kahoot === false} + + + + {:else} + + + + {/if} +
{#if logged_in}