2020-09-11 23:58:50 +00:00
|
|
|
<div class="topo-viz {{if (eq this.datacenters.length 1) "is-single-column"}}" {{did-insert this.loadNodes}} {{did-insert this.captureElement}}>
|
2020-09-04 07:43:27 +00:00
|
|
|
{{#if this.isLoaded}}
|
|
|
|
{{#each this.datacenters as |dc|}}
|
2020-09-11 02:29:25 +00:00
|
|
|
<TopoViz::Datacenter
|
|
|
|
@datacenter={{dc.name}}
|
|
|
|
@nodes={{dc.nodes}}
|
|
|
|
@heightScale={{this.heightScale}}
|
|
|
|
@onAllocationSelect={{this.associateAllocations}}
|
|
|
|
@activeTaskGroup={{this.activeTaskGroup}}
|
2020-09-11 23:58:50 +00:00
|
|
|
@activeJobId={{this.activeJobId}}
|
|
|
|
@onLoad={{action this.masonry}}/>
|
2020-09-04 07:43:27 +00:00
|
|
|
{{/each}}
|
2020-09-11 07:56:14 +00:00
|
|
|
|
|
|
|
{{#if this.activeAllocation}}
|
2020-09-11 21:53:18 +00:00
|
|
|
<svg class="chart topo-viz-edges" {{window-resize this.computedActiveEdges}}>
|
2020-09-11 07:56:14 +00:00
|
|
|
{{#each this.activeEdges as |edge|}}
|
|
|
|
<line class="edge" x1={{edge.x1}} y1={{edge.y1}} x2={{edge.x2}} y2={{edge.y2}} />
|
|
|
|
{{/each}}
|
|
|
|
</svg>
|
|
|
|
{{/if}}
|
2020-09-04 07:43:27 +00:00
|
|
|
{{/if}}
|
2020-09-03 02:37:13 +00:00
|
|
|
</div>
|