Commit 66c59983 authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Stop showing borked related incidence delegates for events



Signed-off-by: Claudio Cambra's avatarClaudio Cambra <claudio.cambra@gmail.com>
parent 951d798c
Pipeline #230683 failed with stage
in 1 minute and 54 seconds
......@@ -561,7 +561,8 @@ Item {
Layout.topMargin: superTaskColumn.visible ? Kirigami.Units.largeSpacing : 0
Layout.columnSpan: 2
Layout.fillWidth: true
visible: root.incidenceWrapper.childIncidences.length > 0
visible: root.incidenceWrapper.childIncidences.length > 0 &&
root.incidenceWrapper.incidenceType === IncidenceWrapper.TypeTodo
Kirigami.Heading {
text: i18np("Sub-task", "Sub-tasks", root.incidenceWrapper.childIncidences.length)
......@@ -570,7 +571,7 @@ Item {
}
Repeater {
model: root.incidenceWrapper.childIncidences
model: subTaskColumn.visible ? root.incidenceWrapper.childIncidences : []
delegate: RelatedIncidenceDelegate {
implicitHeight: root.relatedIncidenceDelegateHeight
incidenceWrapper: modelData
......
Supports Markdown
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