Reset failed tasks

This commit is contained in:
simon987
2019-02-27 20:53:09 -05:00
parent 09dd911dc1
commit 67c67090cf
17 changed files with 118 additions and 32 deletions

View File

@@ -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))
}
)
}
});
}