suspend issues

This commit is contained in:
piotrpekala7 2020-09-04 00:55:49 +02:00
parent bbb344557b
commit 61bb6e45bf
2 changed files with 4 additions and 1 deletions

View File

@ -25,7 +25,7 @@ export class StartNodeActionComponent implements OnInit, OnChanges {
if(changes.nodes) {
this.isNodeWithStoppedStatus = false;
this.nodes.forEach((node) => {
if (node.status === 'stopped') {
if (node.status === 'stopped' || node.status === 'suspended') {
this.isNodeWithStoppedStatus = true;
}
});

View File

@ -50,6 +50,9 @@
<svg *ngIf="node.status==='started'" width="10" height="10">
<rect class="status_started" x="0" y="0" width="10" height="10" fill="green"></rect>
</svg>
<svg *ngIf="node.status==='suspended'" width="10" height="10">
<rect class="status_suspended" x="0" y="0" width="10" height="10" fill="yellow"></rect>
</svg>
<svg *ngIf="node.status==='stopped'" width="10" height="10">
<rect class="status_stopped" x="0" y="0" width="10" height="10" fill="red"></rect>
</svg>