From 920dec4f0884760ff3cd4e50c11b8c085d2a6a4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Sun, 29 Dec 2019 19:16:06 +0100 Subject: [PATCH] Add continents filtering on Locations listing --- src/components/Locations.svelte | 59 ++++++++++++++++++++++++++++++--- 1 file changed, 54 insertions(+), 5 deletions(-) diff --git a/src/components/Locations.svelte b/src/components/Locations.svelte index 5b973db..dc6f54b 100644 --- a/src/components/Locations.svelte +++ b/src/components/Locations.svelte @@ -1,18 +1,66 @@ -
- {#each $locations as location} -
+
+{#each $continents as continent, i} + {#if continent.countries} + + {/if} +{/each} +
+ +