Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Kalendar
Commits
eb17eaab
Commit
eb17eaab
authored
Nov 05, 2021
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/contents/ui/IncidenceInfo.qml
View file @
eb17eaab
...
...
@@ -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
:
actionToolba
r
.
incidenceType
===
IncidenceWrapper
.
TypeTodo
visible
:
incidenceInfo
.
incidenceWrappe
r
.
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
:
actionToolba
r
.
incidenceType
===
IncidenceWrapper
.
TypeTodo
visible
:
incidenceInfo
.
incidenceWrappe
r
.
incidenceType
===
IncidenceWrapper
.
TypeTodo
onTriggered
:
{
incidenceInfo
.
incidenceWrapper
.
todoCompleted
=
!
incidenceInfo
.
incidenceWrapper
.
todoCompleted
;
CalendarManager
.
editIncidence
(
incidenceInfo
.
incidenceWrapper
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment