From 4982751bbee85e3015eb7c9de0b65c79153d9278 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 31 Mar 2020 09:58:43 -0700 Subject: mobile/dive-details: add option to toggle the invalid flag Simply for consistency with the dive list. Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DiveDetails.qml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mobile-widgets/qml/DiveDetails.qml') 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" } -- cgit v1.2.3-70-g09d2