Implement Delete Button in Task Detail Overview
All checks were successful
Java CI with Maven / build-and-push-frontend (push) Successful in 8s
Java CI with Maven / build-and-push-backend (push) Successful in 8s

This commit is contained in:
Sebastian Böckelmann 2024-04-17 20:55:50 +02:00
parent 6417b7afb9
commit 7cd1d68739
2 changed files with 9 additions and 1 deletions

View File

@ -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>

View File

@ -187,4 +187,12 @@ export class TaskDetailOverviewComponent implements OnInit {
minWidth: "400px"
})
}
deleteTask() {
this.taskService.tasksTaskIDDelete(this.task!.taskID).subscribe({
next: resp => {
this.router.navigateByUrl("/")
}
})
}
}