working on project view
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user