fixed broken "add task" buttons in Kanban

This commit is contained in:
2025-12-09 10:21:39 +01:00
parent 85faf31bc6
commit a898e5eaa2
2 changed files with 9 additions and 3 deletions

View File

@@ -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;
}

View File

@@ -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}
<div class="add_task">
<LineEditor value={t('add_object',{object:t('task')})} editable={true} onSet={(name) => create(name,uid,state)}/>
<LineEditor value={t('add_object',{object:t('task')})} editable={true} onSet={(name) => create(name,u.id,state)}/>
</div>
</div>
{/each}