mobile UI: add context menu to DiveDetails

The undo and redo action actually work already.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2020-01-11 15:27:53 -08:00
parent af4bd16f88
commit 28bf078ff7

View file

@ -193,6 +193,20 @@ Kirigami.Page {
} }
} }
contextualActions: [
Kirigami.Action {
text: qsTr("Undo") + " " + manager.undoText
enabled: manager.undoText !== ""
onTriggered: manager.undo()
},
Kirigami.Action {
text: qsTr("Redo") + " " + manager.redoText
enabled: manager.redoText !== ""
onTriggered: manager.redo()
}
]
onBackRequested: { onBackRequested: {
if (state === "edit") { if (state === "edit") {
endEditMode() endEditMode()