fixes after cr

This commit is contained in:
PiotrP 2018-11-14 00:50:00 -08:00
parent 618f966361
commit 39bc162414

View File

@ -38,8 +38,10 @@ export class AddBlankProjectDialogComponent implements OnInit {
}
onAddClick() : void{
if (!this.projectNameForm.invalid){
this.projectService
if (this.projectNameForm.invalid){
return;
}
this.projectService
.list(this.server)
.subscribe((projects: Project[]) => {
const projectName = this.projectNameForm.controls['projectName'].value;
@ -50,8 +52,7 @@ export class AddBlankProjectDialogComponent implements OnInit {
} else {
this.addProject();
}
});
}
});
}
onNoClick() : void{