Remove Finished Task from Dashboard (Taskoverview)
This commit is contained in:
parent
d3257b8748
commit
e1ea8684b2
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user