Commit 48ce78a4 authored by Volker Krause's avatar Volker Krause
Browse files

Show correct message for transfers following events

parent e4c40f29
......@@ -124,7 +124,12 @@ Kirigami.ScrollablePage {
id: topLayout
QQC2.Label {
text: i18n("Preceding arrival %1 at %2", Localizer.formatTime(transfer, "anchorTime"), transfer.fromName);
text: {
if (root.reservation.className == "EventReservation") {
return i18n("%1 ends at %2", root.reservation.reservationFor.name, Localizer.formatTime(transfer, "anchorTime"));
}
return i18n("Preceding arrival %1 at %2", Localizer.formatTime(transfer, "anchorTime"), transfer.fromName);
}
visible: transfer.alignment == Transfer.After
Layout.fillWidth: true
Layout.margins: Kirigami.Units.largeSpacing
......
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