mobile UI: save changes to trip details

The logic when we show the save button is a little fragile (and visually I'm not
sure I love the disabled button), but hey, this works.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2020-02-22 14:07:46 -08:00
parent eaa1a5126b
commit 0683d97636
2 changed files with 65 additions and 2 deletions

View file

@ -288,6 +288,7 @@ Kirigami.ScrollablePage {
text: qsTr("Edit trip details")
visible: currentItem && currentItem.myData && currentItem.myData.isTrip
onTriggered: {
tripEditWindow.tripId = currentItem.myData.tripId
tripEditWindow.tripLocation = currentItem.myData.tripLocation
tripEditWindow.tripNotes = currentItem.myData.tripNotes
pageStack.push(tripEditWindow)