working on project view

This commit is contained in:
2025-07-20 00:09:02 +02:00
parent a14b541c91
commit 8ab3e8792a
10 changed files with 136 additions and 46 deletions

View File

@@ -7,6 +7,7 @@
let project = $state(null);
let error = $state(null);
let tasks = $state(null);
let estimated_time = $state({sum:0});
async function loadProject(){
const url = `${location.protocol}//${location.host.replace('5173','8080')}/api/project/${id}`;
@@ -67,15 +68,17 @@
<th>{t('description')}</th>
<td>{@html project.description.rendered}</td>
</tr>
{#if estimated_time.sum}
<tr>
<th>{t('estimated_time')}</th>
<td class="error">TODO</td>
<td>{estimated_time.sum} h</td>
</tr>
{/if}
<tr>
<th>{t('tasks')}</th>
<td>
{#if tasks}
<TaskList {tasks} />
<TaskList {tasks} bind:estimated_time={estimated_time} />
{/if}
</td>
</tr>