diff options
Diffstat (limited to 'mobile-widgets/qml/DiveDetails.qml')
-rw-r--r-- | mobile-widgets/qml/DiveDetails.qml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mobile-widgets/qml/DiveDetails.qml b/mobile-widgets/qml/DiveDetails.qml index fd352b51a..a98b698c7 100644 --- a/mobile-widgets/qml/DiveDetails.qml +++ b/mobile-widgets/qml/DiveDetails.qml @@ -92,6 +92,11 @@ Kirigami.Page { enabled: currentItem && currentItem.modelData && !currentItem.modelData.isTrip && currentItem.modelData.isTopLevel onTriggered: manager.addTripForDive(currentItem.modelData.id) } + property QtObject toggleInvalidAction: Kirigami.Action { + text: currentItem && currentItem.modelData && currentItem.modelData.isInvalid ? qsTr("Mark dive as valid") : qsTr("Mark dive as invalid") + visible: currentItem && currentItem.modelData + onTriggered: manager.toggleDiveInvalid(currentItem.modelData.id) + } property QtObject undoAction: Kirigami.Action { text: qsTr("Undo") + " " + manager.undoText icon { name: ":/icons/undo.svg" } |