mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-01-28 07:03:50 +00:00
Catch error if project cannot be created
This commit is contained in:
parent
5a46911730
commit
a465133ba3
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.toasterService.success(`Project ${project.name} added`);
|
||||
this.router.navigate(['/controller', this.controller.id, 'project', project.project_id]);
|
||||
});
|
||||
},
|
||||
(error) => {
|
||||
this.toasterService.error("Cannot create new project");
|
||||
console.log(error);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
onKeyDown(event) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user