issue-25 #27
@ -41,6 +41,7 @@ export class TaskOverviewComponent {
|
|||||||
this.taskService.tasksTaskIDFinishPost(task.taskID).subscribe({
|
this.taskService.tasksTaskIDFinishPost(task.taskID).subscribe({
|
||||||
next: resp => {
|
next: resp => {
|
||||||
this.finishedEmitter.emit(task);
|
this.finishedEmitter.emit(task);
|
||||||
|
this.tasks = this.tasks.filter(ct => ct.taskID !== task.taskID)
|
||||||
},
|
},
|
||||||
error: err => {
|
error: err => {
|
||||||
if(err.status == 403) {
|
if(err.status == 403) {
|
||||||
|
Loading…
Reference in New Issue
Block a user