mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-18 14:58:15 +00:00
Update project-map.component.ts
This commit is contained in:
@ -433,7 +433,11 @@ export class ProjectMapComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
exportProject() {
|
exportProject() {
|
||||||
window.location.href = `http://${this.server.host}:${this.server.port}/v2/projects/${this.project.project_id}/export`;
|
if (this.nodes.filter(node => node.node_type = 'virtualbox').length > 0) {
|
||||||
|
this.toasterService.error('Map with VirtualBox machines cannot be exported.')
|
||||||
|
} else {
|
||||||
|
window.location.href = `http://${this.server.host}:${this.server.port}/v2/projects/${this.project.project_id}/export`;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public uploadImageFile(event) {
|
public uploadImageFile(event) {
|
||||||
|
Reference in New Issue
Block a user