issue-112 #115

Merged
sebastian merged 7 commits from issue-112 into master 2024-04-18 20:20:22 +02:00
2 changed files with 9 additions and 1 deletions
Showing only changes of commit 7cd1d68739 - Show all commits

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("/")
}
})
}
}