issue-112 #115
@ -34,7 +34,7 @@
|
||||
</div>
|
||||
|
||||
<div style="float:right;">
|
||||
<button mat-raised-button color="warn">Delete</button>
|
||||
<button mat-raised-button color="warn" (click)="deleteTask()">Delete</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@ -187,4 +187,12 @@ export class TaskDetailOverviewComponent implements OnInit {
|
||||
minWidth: "400px"
|
||||
})
|
||||
}
|
||||
|
||||
deleteTask() {
|
||||
this.taskService.tasksTaskIDDelete(this.task!.taskID).subscribe({
|
||||
next: resp => {
|
||||
this.router.navigateByUrl("/")
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user