Commit 477578ac authored by Volker Krause's avatar Volker Krause
Browse files

Also offer the journey details page for bus trips

parent 8b2f7e39
...@@ -43,9 +43,18 @@ App.DetailsPage { ...@@ -43,9 +43,18 @@ App.DetailsPage {
} }
} }
} }
Component {
id: journeyDetailsAction
Kirigami.Action {
text: i18n("Journey Details")
iconName: "view-calendar-day"
onTriggered: applicationWindow().pageStack.push(journeySectionPage, {"journeySection": root.controller.journey});
visible: root.controller.journey && root.controller.journey.intermediateStops.length > 0
}
}
Component.onCompleted: { Component.onCompleted: {
actions.contextualActions.push(alternativeAction.createObject(root)); actions.contextualActions.push(alternativeAction.createObject(root), journeyDetailsAction.createObject(root));
} }
BarcodeScanModeController { BarcodeScanModeController {
......
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