fixed broken "add task" buttons in Kanban
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user