mirror of
https://github.com/Lissy93/dashy.git
synced 2025-12-06 00:26:20 +01:00
Display Departures/Arrivals only if direction !== arrival/departure
Display Departures if direction = 'departure' or 'both' Display Arrivals if direction = 'arrival' or 'both'
This commit is contained in:
parent
e00a547d6f
commit
7d44e8e7cf
1 changed files with 2 additions and 2 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue