mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
Poprawki w wyglądzie rozkładu
This commit is contained in:
@@ -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(" * ");
|
||||
|
||||
Reference in New Issue
Block a user