kanban no longer showing tasks having no_index flag

This commit is contained in:
2025-07-27 13:14:50 +02:00
parent 2fa95d38c5
commit 770f2aab5b
6 changed files with 10 additions and 7 deletions

View File

@@ -3,5 +3,5 @@
</script>
<footer>
{@html t('advertisement','<a href="https://srsoftware.de">SRSoftware</a>')}
{@html t('advertisement',{producer:'<a href="https://srsoftware.de">SRSoftware</a>'})}
</footer>

View File

@@ -49,6 +49,7 @@
async function loadTasks(selector){
const url = api('task/list');
selector.show_closed = true;
selector.no_index = true;
var resp = await fetch(url,{
credentials: 'include',
method:'POST',
@@ -134,7 +135,7 @@
text-align: center;
}
.highlight{
background: red;
background: #4b3000;
}
</style>
@@ -157,7 +158,7 @@
{#each Object.entries(states) as [state,name]}
<div class={[state, highlight.user == user && highlight.state == state ? 'highlight':'']} ondragover={ev => hover(ev,user,state)} ondrop={ev => drop(user,state)} >
{#if stateList[state]}
{#each Object.entries(stateList[state]) as [tid,task]}
{#each Object.values(stateList[state]).sort((a,b) => a.name.localeCompare(b.name)) as task}
<div draggable="true" class="box" onclick={() => router.navigate(`/task/${task.id}/view`)} ondragstart={ev => dragged=task} >{task.name}</div>
{/each}
{/if}