Commit 8f4fb0b8 authored by Volker Krause's avatar Volker Krause
Browse files

Show ticket number for train tickets when available

This differs from the booking reference in some case, and is e.g.
needed to sign in to the Renfe onboard WiFi.
parent c870a573
Pipeline #242760 passed with stage
in 5 minutes and 6 seconds
......@@ -293,7 +293,7 @@ App.DetailsPage {
Kirigami.Separator {
Kirigami.FormData.label: i18n("Booking")
Kirigami.FormData.isSection: true
visible: referenceLabel.visible || underNameLabel.visible
visible: referenceLabel.visible || underNameLabel.visible || ticketNumberLabel.visible
}
QQC2.Label {
id: referenceLabel
......@@ -301,6 +301,12 @@ App.DetailsPage {
text: reservation.reservationNumber
visible: reservation.reservationNumber
}
QQC2.Label {
id: ticketNumberLabel
Kirigami.FormData.label: i18n("Ticket number:")
text: root.currentReservation.reservedTicket.ticketNumber
visible: ticketNumberLabel.text !== "" && ticketNumberLabel.text != referenceLabel.text
}
QQC2.Label {
id: underNameLabel
Kirigami.FormData.label: i18n("Under name:")
......
Supports Markdown
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