Commit d6cf8b72 authored by Volker Krause's avatar Volker Krause

Show platform changes in the train details page

parent f76f13a4
......@@ -69,9 +69,18 @@ App.DetailsPage {
App.PlaceDelegate {
place: reservationFor.departureStation
}
QQC2.Label {
RowLayout {
Kirigami.FormData.label: i18n("Platform:")
text: reservationFor.departurePlatform
QQC2.Label {
text: departure.hasExpectedPlatform ? departure.expectedPlatform : reservationFor.departurePlatform
color: departure.platformChanged ? Kirigami.Theme.negativeTextColor :
departure.hasExpectedPlatform ? Kirigami.Theme.positiveTextColor :
Kirigami.Theme.textColor;
}
QQC2.Label {
text: i18n("(was: %1)", reservationFor.departurePlatform)
visible: departure.platformChanged && reservationFor.departurePlatform != ""
}
}
// arrival data
......@@ -97,9 +106,18 @@ App.DetailsPage {
App.PlaceDelegate {
place: reservationFor.arrivalStation
}
QQC2.Label {
RowLayout {
Kirigami.FormData.label: i18n("Platform:")
text: reservationFor.arrivalPlatform
QQC2.Label {
text: arrival.hasExpectedPlatform ? arrival.expectedPlatform : reservationFor.arrivalPlatform
color: arrival.platformChanged ? Kirigami.Theme.negativeTextColor :
arrival.hasExpectedPlatform ? Kirigami.Theme.positiveTextColor :
Kirigami.Theme.textColor;
}
QQC2.Label {
text: i18n("(was: %1)", reservationFor.arrivalPlatform)
visible: arrival.platformChanged && reservationFor.arrivalPlatform != ""
}
}
// seat reservation
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment