Add icons to denote draining or ineligibility of clients
This commit is contained in:
parent
7477f32012
commit
d9ac6a63c6
|
@ -1,4 +1,4 @@
|
|||
.chart.topo-viz-node {
|
||||
.topo-viz-node {
|
||||
display: block;
|
||||
|
||||
.label {
|
||||
|
@ -85,7 +85,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
.flex-masonry-columns-2 > .flex-masonry-item > .chart.topo-viz-node svg,
|
||||
.flex-masonry-columns-2 > .flex-masonry-item > .chart.topo-viz-node .label {
|
||||
.flex-masonry-columns-2 > .flex-masonry-item > .topo-viz-node .chart,
|
||||
.flex-masonry-columns-2 > .flex-masonry-item > .topo-viz-node .label {
|
||||
width: calc(100% - 0.75em);
|
||||
}
|
||||
|
|
|
@ -1,9 +1,12 @@
|
|||
<div class="chart topo-viz-node {{unless this.allocations.length "is-empty"}}" {{did-insert this.reloadNode}}>
|
||||
<div class="topo-viz-node {{unless this.allocations.length "is-empty"}}" {{did-insert this.reloadNode}}>
|
||||
{{#unless @isDense}}
|
||||
<p class="label">
|
||||
<strong>
|
||||
{{@node.node.name}}
|
||||
</strong>
|
||||
{{#if @node.node.isDraining}}
|
||||
<span class="tooltip" aria-label="Client is draining">{{x-icon "clock-outline" class="is-info"}}</span>
|
||||
{{else if (not @node.node.isEligible)}}
|
||||
<span class="tooltip" aria-label="Client is ineligible">{{x-icon "lock-closed" class="is-warning"}}</span>
|
||||
{{/if}}
|
||||
<strong>{{@node.node.name}}</strong>
|
||||
<span class="bumper-left">{{this.count}} Allocs</span>
|
||||
<span class="bumper-left is-faded">{{@node.memory}} MiB, {{@node.cpu}} Mhz</span>
|
||||
</p>
|
||||
|
@ -100,9 +103,5 @@
|
|||
<text class="empty-text">Empty Client</text>
|
||||
{{/if}}
|
||||
</svg>
|
||||
<div class="chart-tooltip {{if this.isActive "active" "inactive"}}" style={{this.tooltipStyle}}>
|
||||
<LinkTo @route="allocations.allocation" @model={{this.activeAllocation}}>{{this.activeAllocation.name}} {{this.activeAllocation.shortId}}</LinkTo>
|
||||
({{this.activeAllocation.resources.memory}} MiB, {{this.activeAllocation.resources.cpu}} Mhz)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue