mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
mobile/dive-details: add option to toggle the invalid flag
Simply for consistency with the dive list. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9dd01da9c1
commit
4982751bbe
1 changed files with 5 additions and 0 deletions
|
@ -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" }
|
||||
|
|
Loading…
Reference in a new issue