mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-05-17 07:52:57 +00:00
Update topology-summary.component.ts
This commit is contained in:
parent
2d588c411d
commit
a6ed6660ca
@ -49,6 +49,11 @@ export class TopologySummaryComponent implements OnInit, OnDestroy {
|
|||||||
this.subscriptions.push(
|
this.subscriptions.push(
|
||||||
this.nodesDataSource.changes.subscribe((nodes: Node[]) => {
|
this.nodesDataSource.changes.subscribe((nodes: Node[]) => {
|
||||||
this.nodes = nodes;
|
this.nodes = nodes;
|
||||||
|
this.nodes.forEach(n => {
|
||||||
|
if (n.console_host === '0.0.0.0') {
|
||||||
|
n.console_host = this.server.host;
|
||||||
|
}
|
||||||
|
});
|
||||||
if (this.sortingOrder === 'asc') {
|
if (this.sortingOrder === 'asc') {
|
||||||
this.filteredNodes = nodes.sort(this.compareAsc);
|
this.filteredNodes = nodes.sort(this.compareAsc);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user