loading tasks

This commit is contained in:
2025-07-26 22:56:40 +02:00
parent 91aa421ae9
commit 6599b08990
10 changed files with 177 additions and 18 deletions

View File

@@ -51,6 +51,10 @@
}
}
function kanban(){
router.navigate(`/project/${id}/kanban`);
}
async function loadProject(){
const url = api(`project/${id}`);
const resp = await fetch(url,{credentials:'include'});
@@ -132,7 +136,7 @@
<tr>
<th>{t('state')}</th>
<td>
<StateSelector selected={project.status.code} onchange={val => update({status:val})}/>
<StateSelector selected={project.status.code} onchange={val => update({status:val})} project_id={id} />
</td>
</tr>
{#if project.company}
@@ -185,7 +189,8 @@
<tr>
<th>
{t('tasks')}
<button onclick={addTask}>{t('add_new',t('task'))}</button>
<button onclick={addTask}>{t('add_task')}</button>
<button onclick={kanban}>{t('show_kanban')}</button>
</th>
<td class="tasks">
{#if tasks}