mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-01-14 16:59:57 +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
@ -120,7 +120,7 @@ export class AddAceDialogComponent implements OnInit {
|
||||
this.toasterService.success(`ACE was added for path ${ACE.path}`);
|
||||
},
|
||||
(error) => {
|
||||
this.toasterService.error(`Cannot create ACE : ${error.error.message}`)
|
||||
this.toasterService.error(`Cannot create ACE: ${error.error.message}`)
|
||||
})
|
||||
this.dialogRef.close();
|
||||
}
|
||||
|
@ -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…
Reference in New Issue
Block a user