fixed broken "add task" buttons in Kanban
This commit is contained in:
@@ -22,7 +22,11 @@
|
|||||||
async function applyEdit(){
|
async function applyEdit(){
|
||||||
let success = await onSet(editValue);
|
let success = await onSet(editValue);
|
||||||
if (success) {
|
if (success) {
|
||||||
|
if (success == 'reset'){
|
||||||
|
editValue = value;
|
||||||
|
} else {
|
||||||
value = editValue;
|
value = editValue;
|
||||||
|
}
|
||||||
editing = false;
|
editing = false;
|
||||||
} else {
|
} else {
|
||||||
editValue = value;
|
editValue = value;
|
||||||
|
|||||||
@@ -78,8 +78,10 @@
|
|||||||
if (!tasks[user_id][state]) tasks[user_id][state] = {};
|
if (!tasks[user_id][state]) tasks[user_id][state] = {};
|
||||||
tasks[user_id][state][task.id] = task;
|
tasks[user_id][state][task.id] = task;
|
||||||
yikes();
|
yikes();
|
||||||
|
return 'reset';
|
||||||
} else {
|
} else {
|
||||||
error(resp);
|
error(resp);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -255,7 +257,7 @@
|
|||||||
{/if}
|
{/if}
|
||||||
{/each}
|
{/each}
|
||||||
<div class="add_task">
|
<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>
|
||||||
</div>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
|
|||||||
Reference in New Issue
Block a user