From 0f670ef68e9152b259a7b474f574ad3d1718eec3 Mon Sep 17 00:00:00 2001 From: matthieu42morin Date: Sun, 12 Mar 2023 16:57:53 +0100 Subject: [PATCH] Permissions API is read only, updating LocationRequest, map.svelte Changes to be committed: modified: src/lib/components/Map/LocationRequest.svelte modified: src/routes/map.svelte --- src/lib/components/Map/LocationRequest.svelte | 96 +++++++------------ src/routes/map.svelte | 47 +++++---- 2 files changed, 64 insertions(+), 79 deletions(-) diff --git a/src/lib/components/Map/LocationRequest.svelte b/src/lib/components/Map/LocationRequest.svelte index ceaec32..a594188 100644 --- a/src/lib/components/Map/LocationRequest.svelte +++ b/src/lib/components/Map/LocationRequest.svelte @@ -1,71 +1,49 @@ - - {#if state === 'not-granted'} + + + +{#if !granted} - This is an info alert -
-
Please provide Erant your location
-
- + This is an info alert +
+
To advance through your experience you need to enable the location access, without it the app won't work.
+
+ +
-
- {/if} - - {#if state === 'granted'} +{/if} + diff --git a/src/routes/map.svelte b/src/routes/map.svelte index 825b0c3..cd52021 100644 --- a/src/routes/map.svelte +++ b/src/routes/map.svelte @@ -1,36 +1,43 @@ {#if granted} + {:else} - + + granted = true} /> {/if} \ No newline at end of file -- 2.40.1