From a898e5eaa297fa67f41ec1575174adf594b3fc0c Mon Sep 17 00:00:00 2001 From: Stephan Richter Date: Tue, 9 Dec 2025 10:21:39 +0100 Subject: [PATCH] fixed broken "add task" buttons in Kanban --- frontend/src/Components/LineEditor.svelte | 8 ++++++-- frontend/src/routes/project/Kanban.svelte | 4 +++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/frontend/src/Components/LineEditor.svelte b/frontend/src/Components/LineEditor.svelte index f44ca9e..9dd5252 100644 --- a/frontend/src/Components/LineEditor.svelte +++ b/frontend/src/Components/LineEditor.svelte @@ -22,8 +22,12 @@ async function applyEdit(){ let success = await onSet(editValue); if (success) { - value = editValue; - editing=false; + if (success == 'reset'){ + editValue = value; + } else { + value = editValue; + } + editing = false; } else { editValue = value; } diff --git a/frontend/src/routes/project/Kanban.svelte b/frontend/src/routes/project/Kanban.svelte index ca7f44e..cabb135 100644 --- a/frontend/src/routes/project/Kanban.svelte +++ b/frontend/src/routes/project/Kanban.svelte @@ -78,8 +78,10 @@ if (!tasks[user_id][state]) tasks[user_id][state] = {}; tasks[user_id][state][task.id] = task; yikes(); + return 'reset'; } else { error(resp); + return false; } } @@ -255,7 +257,7 @@ {/if} {/each}
- create(name,uid,state)}/> + create(name,u.id,state)}/>
{/each}