diff --git a/frontend/src/lib/components/TransportationCard.svelte b/frontend/src/lib/components/TransportationCard.svelte index 9c7db3e..c28d0ad 100644 --- a/frontend/src/lib/components/TransportationCard.svelte +++ b/frontend/src/lib/components/TransportationCard.svelte @@ -55,8 +55,13 @@

{transportation.name}

-
- {$t(`transportation.modes.${transportation.type}`)} +
+
+ {$t(`transportation.modes.${transportation.type}`)} +
+ {#if transportation.type == 'plane' && transportation.flight_number} +
{transportation.flight_number}
+ {/if}
diff --git a/frontend/src/lib/components/TransportationModal.svelte b/frontend/src/lib/components/TransportationModal.svelte index 63d177a..a37c6bd 100644 --- a/frontend/src/lib/components/TransportationModal.svelte +++ b/frontend/src/lib/components/TransportationModal.svelte @@ -184,6 +184,10 @@ return; } + if (transportation.type != 'plane') { + transportation.flight_number = ''; + } + if (transportation.id === '') { let res = await fetch('/api/transportations', { method: 'POST', diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index f5bb674..f948e74 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -103,6 +103,7 @@ "rating": "Rating", "my_images": "My Images", "add_an_activity": "Add an activity", + "show_region_labels": "Show Region Labels", "no_images": "No Images", "upload_images_here": "Upload images here", "share_adventure": "Share this Adventure!", diff --git a/frontend/src/routes/worldtravel/[id]/+page.svelte b/frontend/src/routes/worldtravel/[id]/+page.svelte index 012284e..15bd69d 100644 --- a/frontend/src/routes/worldtravel/[id]/+page.svelte +++ b/frontend/src/routes/worldtravel/[id]/+page.svelte @@ -1,7 +1,10 @@