text: currentStatus.cycling ? qsTr("Finish") : qsTr("Start a journey")
onClicked: {
if (currentStatus.cycling) {
- var dialog = pageStack.push(Qt.resolvedUrl("AddJourney.qml"), {title: "Finish journey", start: journeymodel.epochToDateTime(currentStatus.startTime), duration: currentStatus.getDuration()})
+ var dialog = pageStack.push(Qt.resolvedUrl("JourneyEdit.qml"), {title: "Finish journey", start: journeymodel.epochToDateTime(currentStatus.startTime), duration: currentStatus.getDuration()})
dialog.accepted.connect(function() {
currentStatus.cycling = false
Button {
anchors.horizontalCenter: parent.horizontalCenter
text: qsTr("Enter journey")
- onClicked: pageStack.push(Qt.resolvedUrl("AddJourney.qml"))
+ onClicked: pageStack.push(Qt.resolvedUrl("JourneyEdit.qml"))
}
SectionHeader {