From 91b39470db6b6faee2e10cc01bf4cb3655b95488 Mon Sep 17 00:00:00 2001 From: Jon Hardie Date: Wed, 21 Jul 2021 15:15:00 +1200 Subject: [PATCH] - Don't break on retired stations, show the latest version of a retired station. --- src/views/StationView.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/StationView.vue b/src/views/StationView.vue index 8bc0533..c37ddf6 100644 --- a/src/views/StationView.vue +++ b/src/views/StationView.vue @@ -43,7 +43,7 @@ style="color: #666; font-size: 16px" /> - {{ stationName }} + {{ stationName }} (retired)
@@ -189,6 +189,7 @@ export default { recordingsQueryFinal: {}, visitsQueryFinal: {}, station: null, + stationIsRetired: false, group: {}, tabNames: ["recordings", "visits"], }; @@ -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];