implemented adding sub tasks

This commit is contained in:
2025-07-25 15:23:38 +02:00
parent adf7166bce
commit 8c7921b1c4
5 changed files with 40 additions and 4 deletions

View File

@@ -21,6 +21,10 @@
loadTask();
}
function addChild(){
router.navigate(`/task/${id}/add_subtask`);
}
async function loadChildren(){
const url = api('task/list');
var data = {
@@ -127,6 +131,7 @@
<tr>
<th>{t('subtasks')}</th>
<td class="task children">
<button onclick={addChild} >{t('add_subtask')}</button>
<TaskList tasks={children} {estimated_time} />
</td>
</tr>