Poprawki w wyglądzie rozkładu

This commit is contained in:
2020-09-12 00:12:42 +02:00
parent 730c56eaee
commit 19e82c7029
5 changed files with 337 additions and 265 deletions
+2 -4
View File
@@ -140,12 +140,10 @@ export default class TrainTable extends Vue {
generateStopList(stops: any): string | undefined {
if (!stops) return "";
return stops.reduce((acc, stop, i) => {
if (i < 2 || i > stops.length - 2) return acc;
if (stop.stopType.includes("ph")) acc.push(`<strong>${stop.stopName}</strong>`);
if (stop.stopType == "") acc.push(`<span style='color: #ccc;'>${stop.stopName}</span>`);
if (stop.stopType == "podg.") acc.push(`<span style='color: #ccc;'>${stop.stopName
}</span>`);
else if (i > 0 && i < stops.length - 1) acc.push(`<span style='color: #ccc;'>${stop.stopName}</span>`);
// if (stop.stopType == "podg.") acc.push(`<span style='color: #ccc;'>${stop.stopName}</span>`);
return acc;
}, []).join(" * ");