diff --git a/backend/.idea/workspace.xml b/backend/.idea/workspace.xml
index 9a7d7de..8976ff7 100644
--- a/backend/.idea/workspace.xml
+++ b/backend/.idea/workspace.xml
@@ -4,9 +4,8 @@
-
-
-
+
+
@@ -260,7 +259,15 @@
1698573369764
-
+
+
+ 1698592265846
+
+
+
+ 1698592265846
+
+
@@ -287,7 +294,8 @@
-
+
+
diff --git a/frontend/src/app/overdue-task-overview/overdue-task-overview.component.ts b/frontend/src/app/overdue-task-overview/overdue-task-overview.component.ts
index b0decdc..01f089c 100644
--- a/frontend/src/app/overdue-task-overview/overdue-task-overview.component.ts
+++ b/frontend/src/app/overdue-task-overview/overdue-task-overview.component.ts
@@ -77,8 +77,21 @@ export class OverdueTaskOverviewComponent implements OnInit{
})
}
- deleteTask(task: TaskTaskgroupInfo) {
-
+ deleteTask(deletedTask: TaskTaskgroupInfo) {
+ this.taskService.tasksTaskIDDelete(deletedTask.taskID).subscribe({
+ next: resp => {
+ this.overdueTasks = this.overdueTasks.filter(task => task.taskID !== deletedTask.taskID);
+ },
+ error: err => {
+ if(err.status == 403) {
+ this.snackbar.open("No permissions", "", {duration: 2000});
+ } else if(err.status == 404) {
+ this.snackbar.open("Not found", "", {duration: 2000});
+ } else {
+ this.snackbar.open("Unexpected error", "", {duration: 2000});
+ }
+ }
+ })
}