Update topology-summary.component.ts

This commit is contained in:
Piotr Pekala 2019-10-28 03:57:57 -07:00
parent 2d588c411d
commit a6ed6660ca

View File

@ -49,6 +49,11 @@ export class TopologySummaryComponent implements OnInit, OnDestroy {
this.subscriptions.push(
this.nodesDataSource.changes.subscribe((nodes: Node[]) => {
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') {
this.filteredNodes = nodes.sort(this.compareAsc);
} else {