mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
Poprawki w działaniu ładowania pociągów
This commit is contained in:
@@ -182,7 +182,10 @@
|
||||
>Na stacji</span>
|
||||
|
||||
<span style="color: #FF4646" v-else-if="timetable.stopped">Postój</span>
|
||||
<span style="color: #aaa" v-else-if="!timetable.confirmed">W drodze</span>
|
||||
<span
|
||||
style="color: #aaa"
|
||||
v-else-if="!timetable.confirmed && timetable.currentStationName != stationInfo.stationName"
|
||||
>W drodze</span>
|
||||
|
||||
<span
|
||||
style="color: red"
|
||||
@@ -254,8 +257,6 @@ export default class StationCard extends styleMixin {
|
||||
|
||||
|
||||
get computedScheduledTrains() {
|
||||
console.log(this.stationInfo.stationName, "test");
|
||||
|
||||
return this.stationInfo.scheduledTrains.sort((a, b) => {
|
||||
if (a.arrivalTime > b.arrivalTime) return 1;
|
||||
else if ((a.arrivalTime < b.arrivalTime)) return -1;
|
||||
|
||||
Reference in New Issue
Block a user