mirror of
https://github.com/simon987/task_tracker.git
synced 2025-12-13 23:09:02 +00:00
Fix pause button
This commit is contained in:
@@ -355,11 +355,19 @@ export class ProjectDashboardComponent implements OnInit {
|
||||
}
|
||||
|
||||
pauseProject() {
|
||||
this.setPaused(true)
|
||||
}
|
||||
|
||||
resumeProject() {
|
||||
this.setPaused(false)
|
||||
}
|
||||
|
||||
private setPaused(paused: boolean) {
|
||||
this.dialog.open(AreYouSureComponent, {
|
||||
width: '250px',
|
||||
}).afterClosed().subscribe(result => {
|
||||
if (result) {
|
||||
this.project.paused = true;
|
||||
this.project.paused = paused;
|
||||
this.apiService.updateProject(this.project).subscribe(() => {
|
||||
this.translate.get("messenger.acknowledged").subscribe(t =>
|
||||
this.messenger.show(t))
|
||||
|
||||
Reference in New Issue
Block a user