From 74b97d6df716cee7d85c7f3ea525ae5c94e7f6f4 Mon Sep 17 00:00:00 2001 From: Lilian Date: Tue, 28 Feb 2023 16:10:59 +0100 Subject: [PATCH] t --- frontend/src/routes/room/[...slug]/+page.svelte | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/frontend/src/routes/room/[...slug]/+page.svelte b/frontend/src/routes/room/[...slug]/+page.svelte index 7fa1b19..839d7ca 100644 --- a/frontend/src/routes/room/[...slug]/+page.svelte +++ b/frontend/src/routes/room/[...slug]/+page.svelte @@ -411,10 +411,10 @@ let fade = false; - /*beforeNavigate((n) => { + beforeNavigate((n) => { if (fade == false && !!n.to?.url) { fade = true; - //n.cancel(); + n.cancel(); setTimeout(() => { if (!!n.to?.url) { goto(n.to?.url); @@ -423,7 +423,7 @@ } else { fade = false; } - });*/ + }); afterNavigate((n) => { let oldParcoursId = @@ -455,6 +455,8 @@ ws.close(1000); }); + $: console.log($page.url.searchParams.toString(),$page.url.searchParams.get('p')) +
@@ -480,6 +482,7 @@ {#if $page.url.searchParams.get('p') == 'new'} + {:else if $page.url.searchParams.get('p') != 'new' && $page.url.searchParams.get('p') != null} {#if $page.url.searchParams.get('edit') != '1'} @@ -494,6 +497,9 @@ {/if} {/if} + + +