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}