Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
- Don't break on retired stations, show the latest version of a retir…
Browse files Browse the repository at this point in the history
…ed station.
  • Loading branch information
hardiesoft committed Jul 21, 2021
1 parent cbbaedb commit 91b3947
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/views/StationView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
style="color: #666; font-size: 16px"
/>
<font-awesome-icon icon="map-marker-alt" size="xs" />
<span>{{ stationName }}</span>
<span>{{ stationName }}</span> <span v-if="stationIsRetired">(retired)</span>
</h1>
</div>
<div>
Expand Down Expand Up @@ -189,6 +189,7 @@ export default {
recordingsQueryFinal: {},
visitsQueryFinal: {},
station: null,
stationIsRetired: false,
group: {},
tabNames: ["recordings", "visits"],
};
Expand Down Expand Up @@ -231,6 +232,7 @@ export default {
new Date(b.retiredAt).getTime()
);
this.station = sortedByLatestRetired.pop();
this.stationIsRetired = true;
}
} else if (station.length === 1) {
this.station = station[0];
Expand Down

0 comments on commit 91b3947

Please sign in to comment.