From 72254fb4794e8784773c413daa99b8bc0c711111 Mon Sep 17 00:00:00 2001 From: Josh Creek <8179928+jcreek@users.noreply.github.com> Date: Fri, 12 Jul 2024 14:35:25 +0100 Subject: [PATCH] feat(*): Add ability to toggle origins and forms --- .../pokedex/PokedexEntryCatchRecord.svelte | 42 +++++++++++-------- src/routes/mydex/+page.svelte | 17 +++++++- 2 files changed, 40 insertions(+), 19 deletions(-) diff --git a/src/lib/components/pokedex/PokedexEntryCatchRecord.svelte b/src/lib/components/pokedex/PokedexEntryCatchRecord.svelte index 6d021c9..b2eced9 100644 --- a/src/lib/components/pokedex/PokedexEntryCatchRecord.svelte +++ b/src/lib/components/pokedex/PokedexEntryCatchRecord.svelte @@ -6,6 +6,8 @@ export let pokedexEntry: PokedexEntry; export let catchRecord: CatchRecord; + export let showOrigins: boolean; + export let showForms: boolean; const dispatch = createEventDispatcher(); @@ -34,15 +36,19 @@ -
Form: {pokedexEntry.form ? pokedexEntry.form : '-'}
-Form: {pokedexEntry.form ? pokedexEntry.form : '-'}
+Box: {pokedexEntry.boxPlacement.box}
Row: {pokedexEntry.boxPlacement.row}
Column: {pokedexEntry.boxPlacement.column}
-Can Gigantamax: {pokedexEntry.canGigantamax ? 'Yes' : 'No'}
+ {#if showForms} +Can Gigantamax: {pokedexEntry.canGigantamax ? 'Yes' : 'No'}
+ {/if}Notes: {pokedexEntry.notes}
Region to Catch In: {pokedexEntry.regionToCatchIn}
-Games to catch in:
-Region to Evolve In: {pokedexEntry.regionToEvolveIn}
- {/if} -Region to Catch In: {pokedexEntry.regionToCatchIn}
+Games to catch in:
+Region to Evolve In: {pokedexEntry.regionToEvolveIn}
+ {/if} +