From 1f63bf2d49b0f7751538528e52c47e0923420fec Mon Sep 17 00:00:00 2001 From: Mohamed-Hacene Date: Thu, 12 Dec 2024 19:26:13 +0100 Subject: [PATCH] feat: track ro-to selected activity --- .../[id=uuid]/workshop-two/ro-to/+page.svelte | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/frontend/src/routes/(app)/(internal)/ebios-rm/[id=uuid]/workshop-two/ro-to/+page.svelte b/frontend/src/routes/(app)/(internal)/ebios-rm/[id=uuid]/workshop-two/ro-to/+page.svelte index 08ebedae8..772da6e6e 100644 --- a/frontend/src/routes/(app)/(internal)/ebios-rm/[id=uuid]/workshop-two/ro-to/+page.svelte +++ b/frontend/src/routes/(app)/(internal)/ebios-rm/[id=uuid]/workshop-two/ro-to/+page.svelte @@ -8,6 +8,7 @@ import MissingConstraintsModal from '$lib/components/Modals/MissingConstraintsModal.svelte'; import { checkConstraints } from '$lib/utils/crud'; import * as m from '$paraglide/messages.js'; + import { page } from '$app/stores'; const modalStore: ModalStore = getModalStore(); @@ -50,9 +51,25 @@ } modalStore.trigger(modal); } + + let activeActivity: string | null = null; + $page.url.searchParams.forEach((value, key) => { + if (key === 'activity' && value === 'one') { + activeActivity = 'one'; + } else if (key === 'activity' && value === 'two') { + activeActivity = 'two'; + } else if (key === 'activity' && value === 'three') { + activeActivity = 'three'; + } + }); - +