From e1ea8684b22956d5797c62baafc142712c51d237 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sat, 28 Oct 2023 18:37:16 +0200 Subject: [PATCH] Remove Finished Task from Dashboard (Taskoverview) --- .../src/app/dashboard/task-overview/task-overview.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/app/dashboard/task-overview/task-overview.component.ts b/frontend/src/app/dashboard/task-overview/task-overview.component.ts index ef1d591..7d25357 100644 --- a/frontend/src/app/dashboard/task-overview/task-overview.component.ts +++ b/frontend/src/app/dashboard/task-overview/task-overview.component.ts @@ -41,6 +41,7 @@ export class TaskOverviewComponent { this.taskService.tasksTaskIDFinishPost(task.taskID).subscribe({ next: resp => { this.finishedEmitter.emit(task); + this.tasks = this.tasks.filter(ct => ct.taskID !== task.taskID) }, error: err => { if(err.status == 403) {