From 9c13bde1ff6e889973efc1c1b4e04f589d2b4055 Mon Sep 17 00:00:00 2001 From: Senyoret1 <34079003+Senyoret1@users.noreply.github.com> Date: Tue, 30 Mar 2021 07:47:23 -0400 Subject: [PATCH] Fix for the updater UI --- .../components/pages/node-list/node-list.component.ts | 10 ++++++---- static/skywire-manager-src/src/assets/i18n/en.json | 2 +- static/skywire-manager-src/src/assets/i18n/es.json | 2 +- .../skywire-manager-src/src/assets/i18n/es_base.json | 2 +- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/static/skywire-manager-src/src/app/components/pages/node-list/node-list.component.ts b/static/skywire-manager-src/src/app/components/pages/node-list/node-list.component.ts index bd0335481..09059f539 100644 --- a/static/skywire-manager-src/src/app/components/pages/node-list/node-list.component.ts +++ b/static/skywire-manager-src/src/app/components/pages/node-list/node-list.component.ts @@ -460,10 +460,12 @@ export class NodeListComponent implements OnInit, OnDestroy { const nodesData: NodeData[] = []; this.dataSource.forEach(node => { - nodesData.push({ - key: node.localPk, - label: node.label, - }); + if (node.online) { + nodesData.push({ + key: node.localPk, + label: node.label, + }); + } }); UpdateComponent.openDialog(this.dialog, nodesData); diff --git a/static/skywire-manager-src/src/assets/i18n/en.json b/static/skywire-manager-src/src/assets/i18n/en.json index f31fce43a..b23f274f8 100644 --- a/static/skywire-manager-src/src/assets/i18n/en.json +++ b/static/skywire-manager-src/src/assets/i18n/en.json @@ -134,7 +134,7 @@ "nodes": { "title": "Visor list", "dmsg-title": "DMSG", - "update-all": "Update all visors", + "update-all": "Update all online visors", "hypervisor": "Hypervisor", "state": "State", "state-tooltip": "Current state", diff --git a/static/skywire-manager-src/src/assets/i18n/es.json b/static/skywire-manager-src/src/assets/i18n/es.json index 62903a84f..b3170bc7d 100644 --- a/static/skywire-manager-src/src/assets/i18n/es.json +++ b/static/skywire-manager-src/src/assets/i18n/es.json @@ -131,7 +131,7 @@ "nodes": { "title": "Lista de visores", "dmsg-title": "DMSG", - "update-all": "Actualizar todos los visores", + "update-all": "Actualizar todos los visores online", "hypervisor": "Hypervisor", "state": "Estado", "state-tooltip": "Estado actual", diff --git a/static/skywire-manager-src/src/assets/i18n/es_base.json b/static/skywire-manager-src/src/assets/i18n/es_base.json index 593421dfb..7d7c7132a 100644 --- a/static/skywire-manager-src/src/assets/i18n/es_base.json +++ b/static/skywire-manager-src/src/assets/i18n/es_base.json @@ -131,7 +131,7 @@ "nodes": { "title": "Visor list", "dmsg-title": "DMSG", - "update-all": "Update all visors", + "update-all": "Update all online visors", "hypervisor": "Hypervisor", "state": "State", "state-tooltip": "Current state",