mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-05-09 03:52:51 +00:00
Get nodes earlier than nodes for compatibility
This commit is contained in:
parent
3d42d46987
commit
ce6a727300
@ -141,18 +141,18 @@ export class ProjectMapComponent implements OnInit {
|
|||||||
this.symbolService
|
this.symbolService
|
||||||
.load(this.server)
|
.load(this.server)
|
||||||
.flatMap(() => {
|
.flatMap(() => {
|
||||||
return this.projectService.drawings(this.server, project.project_id);
|
return this.projectService.nodes(this.server, project.project_id);
|
||||||
})
|
})
|
||||||
.flatMap((drawings: Drawing[]) => {
|
.flatMap((nodes: Node[]) => {
|
||||||
this.drawingsDataSource.set(drawings);
|
this.nodesDataSource.set(nodes);
|
||||||
return this.projectService.links(this.server, project.project_id);
|
return this.projectService.links(this.server, project.project_id);
|
||||||
})
|
})
|
||||||
.flatMap((links: Link[]) => {
|
.flatMap((links: Link[]) => {
|
||||||
this.linksDataSource.set(links);
|
this.linksDataSource.set(links);
|
||||||
return this.projectService.nodes(this.server, project.project_id);
|
return this.projectService.drawings(this.server, project.project_id);
|
||||||
})
|
})
|
||||||
.subscribe((nodes: Node[]) => {
|
.subscribe((drawings: Drawing[]) => {
|
||||||
this.nodesDataSource.set(nodes);
|
this.drawingsDataSource.set(drawings);
|
||||||
|
|
||||||
this.setUpMapCallbacks(project);
|
this.setUpMapCallbacks(project);
|
||||||
this.setUpWS(project);
|
this.setUpWS(project);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user