mirror of
https://github.com/simon987/task_tracker.git
synced 2025-12-13 23:09:02 +00:00
Reset failed tasks
This commit is contained in:
@@ -349,7 +349,16 @@ export class ProjectDashboardComponent implements OnInit {
|
||||
width: '250px',
|
||||
}).afterClosed().subscribe(result => {
|
||||
if (result) {
|
||||
alert("yes")
|
||||
this.apiService.resetFailedTasks(this.projectId).subscribe(
|
||||
data => {
|
||||
this.translate.get("project.reset_response").subscribe(t =>
|
||||
this.messenger.show(t + data["content"]["affected_tasks"]))
|
||||
},
|
||||
error => {
|
||||
this.translate.get("messenger.unauthorized").subscribe(t =>
|
||||
this.messenger.show(t))
|
||||
}
|
||||
)
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user