improved task view:
parent task no longer disappears when task is updated Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -143,7 +143,9 @@
|
|||||||
});
|
});
|
||||||
if (resp.ok){
|
if (resp.ok){
|
||||||
error = null;
|
error = null;
|
||||||
|
let old_task = task;
|
||||||
task = await resp.json();
|
task = await resp.json();
|
||||||
|
if (task.parent_id == old_task.parent_id) task.parent = old_task.parent;
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
error = await resp.text();
|
error = await resp.text();
|
||||||
|
|||||||
Reference in New Issue
Block a user