Commit 21893b1b authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

Use "Show Boarding pass" only for flights

Otherwise use "Show ticket"
parent 24dd3573
......@@ -104,7 +104,7 @@ Kirigami.ScrollablePage {
contextualActions: [
Kirigami.Action {
iconSource: root.passId !== "" ? "image://org.kde.pkpass/" + passId + "/icon" : ""
text: i18n("Show Boarding Pass")
text: currentReservation.className === "FlightReservation" ? i18n("Show Boarding Pass") : i18n("Show Ticket")
visible: PkPassManager.hasPass(root.passId)
onTriggered: applicationWindow().pageStack.push(pkpassComponent, {"passId": root.passId });
},
......
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