mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-23 00:49:01 +00:00
Catch error if project cannot be created
This commit is contained in:
1
dist/main.1edc825200ac1c9e.js
vendored
1
dist/main.1edc825200ac1c9e.js
vendored
File diff suppressed because one or more lines are too long
@ -75,7 +75,12 @@ export class AddBlankProjectDialogComponent implements OnInit {
|
|||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
this.toasterService.success(`Project ${project.name} added`);
|
this.toasterService.success(`Project ${project.name} added`);
|
||||||
this.router.navigate(['/controller', this.controller.id, 'project', project.project_id]);
|
this.router.navigate(['/controller', this.controller.id, 'project', project.project_id]);
|
||||||
});
|
},
|
||||||
|
(error) => {
|
||||||
|
this.toasterService.error("Cannot create new project");
|
||||||
|
console.log(error);
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
onKeyDown(event) {
|
onKeyDown(event) {
|
||||||
|
Reference in New Issue
Block a user