Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

Display Departures/Arrivals only if direction !== arrival/departure

Robert Nowotniak7d44e8e7cfd0
diff --git a/src/components/Widgets/Flights.vue b/src/components/Widgets/Flights.vue
index 7f930659..512fafc2 100644
--- a/src/components/Widgets/Flights.vue
+++ b/src/components/Widgets/Flights.vue
@@ -5,7 +5,7 @@
Live {{ direction !== 'both' ? direction: 'flight' }} data from {{ airport }}
</p>
<!-- Departures -->
- <div v-if="departures.length > 0" class="flight-group">
+ <div v-if="direction !== 'arrival' && departures.length > 0" class="flight-group">
<h3 class="flight-type-subtitle" v-if="direction === 'both'">
{{ $t('widgets.flight-data.departures') }}
</h3>
@@ -16,7 +16,7 @@
</div>
</div>
<!-- Arrivals -->
- <div v-if="arrivals.length > 0" class="flight-group">
+ <div v-if="direction !== 'departure' && arrivals.length > 0" class="flight-group">
<h3 class="flight-type-subtitle" v-if="direction === 'both'">
{{ $t('widgets.flight-data.arrivals') }}
</h3>