working on extended states

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-08-01 20:48:12 +02:00
parent 2813fed670
commit 0511faa342
4 changed files with 9 additions and 33 deletions

View File

@@ -63,7 +63,7 @@
const resp = await fetch(url,{credentials:'include'});
if (resp.ok){
project = await resp.json();
console.log(project);
// console.log(project);
error = null;
loadTasks();
} else {
@@ -143,7 +143,7 @@
<tr>
<th>{t('state')}</th>
<td>
<StateSelector selected={project.status} onchange={val => update({status:val})} project_id={id} />
<StateSelector selected={project.status} onchange={val => update({status:val})} {project} />
</td>
</tr>
{#if project.company}
@@ -231,4 +231,4 @@
<div class="notes">
<h3>{t('notes')}</h3>
<Notes module="project" entity_id={id} />
</div>
</div>

View File

@@ -186,7 +186,7 @@
<tr>
<th>{t('state')}</th>
<td>
<StateSelector selected={task.status} onchange={val => update({status:val})} project_id={task.project_id} />
<StateSelector selected={task.status} onchange={val => update({status:val})} {project} />
</td>
</tr>
{#if task.description}