Poprawiony wygląd progress baru aktywnych RJ

This commit is contained in:
2022-05-23 14:35:09 +02:00
parent 9c0c42bc04
commit 142f1413ba
5 changed files with 47 additions and 397 deletions
+2 -2
View File
@@ -68,7 +68,7 @@ export default defineComponent({
},
confirmedPercentage(stops: TrainStop[]) {
return ((stops.filter((stop) => stop.confirmed).length / stops.length) * 100).toFixed(0);
return Number(((stops.filter((stop) => stop.confirmed).length / stops.length) * 100).toFixed(0));
},
currentDelay(stops: TrainStop[]) {
@@ -100,7 +100,7 @@ export default defineComponent({
const moreCount = commentList.length - 10;
return commentList.slice(0,10).join(", ") + (moreCount > 0 ? `... (+${moreCount})` : '');
return commentList.slice(0, 10).join(", ") + (moreCount > 0 ? `... (+${moreCount})` : '');
},
displayDistance(distance: number) {