working on user-defined states

This commit is contained in:
2025-07-31 20:55:03 +02:00
parent 956085c7d3
commit c57da0a891
6 changed files with 29 additions and 17 deletions

View File

@@ -44,6 +44,7 @@
function updateOn(id){
task = null;
loadTask();
}
@@ -162,13 +163,17 @@
{#if project}
<tr>
<th>{t('project')}</th>
<td class="project"><a href="" onclick={gotoProject}>{project.name}</a></td>
<td class="project">
<a href="#" onclick={gotoProject}>{project.name}</a>
</td>
</tr>
{/if}
{#if task.parent}
<tr>
<th>{t('parent_task')}</th>
<td class="parent" onclick={gotoParent}>{task.parent.name}</td>
<td class="parent">
<a href="#" onclick={gotoParent}>{task.parent.name}</a>
</td>
</tr>
{/if}
<tr>
@@ -282,7 +287,7 @@
</th>
<td class="children">
{#if children}
<TaskList tasks={children} {estimated_time} show_closed={task.show_closed} />
<TaskList states={project?.allowed_states} tasks={children} {estimated_time} show_closed={task.show_closed} />
{/if}
</td>
</tr>