mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-04 05:48:11 +00:00
Poprawiono wygląd widoku pociągów; dodano progress bar
This commit is contained in:
@@ -63,6 +63,10 @@ export default defineComponent({
|
||||
.join(' > ');
|
||||
},
|
||||
|
||||
currentDistance(stops: TrainStop[]) {
|
||||
return stops.filter(stop => stop.confirmed).slice(-1)[0]?.stopDistance || 0;
|
||||
},
|
||||
|
||||
confirmedPercentage(stops: TrainStop[]) {
|
||||
return ((stops.filter((stop) => stop.confirmed).length / stops.length) * 100).toFixed(0);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user