Commit eb17eaab authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Adding sub-task and marking completed actions once again show up for tasks in incidence info

parent 38f1eff2
Pipeline #94130 passed with stage
in 4 minutes and 38 seconds
......@@ -98,14 +98,11 @@ Kirigami.OverlayDrawer {
Layout.fillHeight: true
alignment: Qt.AlignRight
// If accessing directly, updated incidenceWrapper data not grabbed (???)
property string incidenceType: incidenceInfo.incidenceWrapper.incidenceType
actions: [
Kirigami.Action {
icon.name: "list-add"
text: i18n("Add Sub-Task")
visible: actionToolbar.incidenceType === IncidenceWrapper.TypeTodo
visible: incidenceInfo.incidenceWrapper.incidenceType === IncidenceWrapper.TypeTodo
onTriggered: {
incidenceInfo.incidenceWrapper.collectionId = collectionData.id;
addSubTodo(incidenceInfo.incidenceWrapper);
......@@ -115,7 +112,7 @@ Kirigami.OverlayDrawer {
property bool todoCompleted: incidenceInfo.incidenceWrapper.todoCompleted
icon.name: todoCompleted ? "edit-undo" : "checkmark"
text: todoCompleted ? i18n("Mark Incomplete") : i18n("Mark Complete")
visible: actionToolbar.incidenceType === IncidenceWrapper.TypeTodo
visible: incidenceInfo.incidenceWrapper.incidenceType === IncidenceWrapper.TypeTodo
onTriggered: {
incidenceInfo.incidenceWrapper.todoCompleted = !incidenceInfo.incidenceWrapper.todoCompleted;
CalendarManager.editIncidence(incidenceInfo.incidenceWrapper);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment