Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Itinerary
Commits
21893b1b
Commit
21893b1b
authored
Sep 26, 2021
by
Kai Uwe Broulik
🍇
Browse files
Use "Show Boarding pass" only for flights
Otherwise use "Show ticket"
parent
24dd3573
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app/DetailsPage.qml
View file @
21893b1b
...
...
@@ -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
});
},
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment