Improve hidden completed parent display
All checks were successful
Deploy Sokko G / deploy (push) Successful in 6s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 6s
This commit is contained in:
parent
ee1c8afa9a
commit
3772db12e2
2 changed files with 61 additions and 4 deletions
|
|
@ -640,7 +640,21 @@ function TaskPlannerBranch({
|
|||
if (data.hideCompleted && task.checked) {
|
||||
if (!hasVisibleDescendants(task.id)) return null;
|
||||
return (
|
||||
<li className="task-planner-hidden-parent-children" key={`${task.id}:visible-children`}>
|
||||
<li className="task-planner-hidden-parent" key={`${task.id}:visible-children`}>
|
||||
<div className="task-planner-hidden-parent-line">
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={task.checked}
|
||||
onChange={(event) => onUpdateTask(task.id, (current) => ({
|
||||
...current,
|
||||
checked: event.target.checked,
|
||||
checkedAt: event.target.checked ? Date.now() : 0
|
||||
}))}
|
||||
aria-label={`${textContent.uncheckTitle || "Marquer non effectué"} ${task.title}`}
|
||||
/>
|
||||
<span title={task.title}>{task.title}</span>
|
||||
<small>{getTaskTypeLabel(task.type, textContent)}</small>
|
||||
</div>
|
||||
<ul className="task-planner-list task-planner-child-list">{nestedBranch}</ul>
|
||||
</li>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue