diff --git a/src/app/components/projects/edit-project-dialog/edit-project-dialog.component.html b/src/app/components/projects/edit-project-dialog/edit-project-dialog.component.html index 94d562cf..1103afd7 100644 --- a/src/app/components/projects/edit-project-dialog/edit-project-dialog.component.html +++ b/src/app/components/projects/edit-project-dialog/edit-project-dialog.component.html @@ -33,7 +33,7 @@ Start all nodes when this project is opened - + Leave this project running in the background after closing diff --git a/src/app/components/projects/edit-project-dialog/edit-project-dialog.component.ts b/src/app/components/projects/edit-project-dialog/edit-project-dialog.component.ts index f6fd15c9..dc77f0f9 100644 --- a/src/app/components/projects/edit-project-dialog/edit-project-dialog.component.ts +++ b/src/app/components/projects/edit-project-dialog/edit-project-dialog.component.ts @@ -22,6 +22,8 @@ export class EditProjectDialogComponent implements OnInit { displayedColumns: string[] = ['name', 'value', 'actions']; variables: ProjectVariable[] = []; + auto_close: boolean; + constructor( public dialogRef: MatDialogRef, private formBuilder: FormBuilder, @@ -52,6 +54,7 @@ export class EditProjectDialogComponent implements OnInit { if (this.project.variables) { this.project.variables.forEach(n => this.variables.push(n)); } + this.auto_close = !this.project.auto_close; } addVariable() { @@ -83,6 +86,8 @@ export class EditProjectDialogComponent implements OnInit { this.project.grid_size = this.formGroup.get('nodeGridSize').value; this.project.variables = this.variables; + this.project.auto_close = !this.project.auto_close; + this.projectService.update(this.server, this.project).subscribe((project: Project) => { this.toasterService.success(`Project ${project.name} updated.`); this.onNoClick();