replacing site-local error display by global error display

This commit is contained in:
2025-09-26 15:27:20 +02:00
parent 2a6392cd2b
commit e3b735bb7b
16 changed files with 62 additions and 66 deletions

View File

@@ -49,7 +49,7 @@
timetrack.running = track;
yikes();
} else {
error(await resp.text());
error(resp);
}
}
@@ -90,7 +90,7 @@
children = await resp.json();
yikes();
} else {
error(await resp.text());
error(resp);
}
}
@@ -100,7 +100,7 @@
if (resp.ok){
task.parent = await resp.json();
} else {
error(await resp.text());
error(resp);
}
}
@@ -116,7 +116,7 @@
if (task.project_id) loadProject();
if (task.parent_task_id) loadParent();
} else {
error(await resp.text());
error(resp);
}
}
@@ -149,7 +149,7 @@
if (task.parent_id == old_task.parent_id) task.parent = old_task.parent;
return true;
} else {
error(await resp.text());
error(resp);
return false;
}
}