From 24c8510932bfe47a189f45b69d496ca3841a9f6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Drwi=C4=99ga?= Date: Wed, 12 Jul 2017 08:52:50 +0200 Subject: [PATCH] Fix status icon (#6039) * Fix status icon when zooming out. * Fix health errors. --- js/src/redux/providers/status.js | 3 +++ js/src/ui/StatusIndicator/statusIndicator.css | 1 + 2 files changed, 4 insertions(+) diff --git a/js/src/redux/providers/status.js b/js/src/redux/providers/status.js index fa636498c..c8be9d55f 100644 --- a/js/src/redux/providers/status.js +++ b/js/src/redux/providers/status.js @@ -209,6 +209,9 @@ export default class Status { const status = { netPeers, syncing, health }; health.overall = this._overallStatus(health); + health.peers = health.peers || {}; + health.sync = health.sync || {}; + health.time = health.time || {}; if (!isEqual(status, this._status)) { this._store.dispatch(statusCollection(status)); diff --git a/js/src/ui/StatusIndicator/statusIndicator.css b/js/src/ui/StatusIndicator/statusIndicator.css index fa8c0bfcf..fb2b6a8be 100644 --- a/js/src/ui/StatusIndicator/statusIndicator.css +++ b/js/src/ui/StatusIndicator/statusIndicator.css @@ -23,6 +23,7 @@ margin: .2em; width: 1em; height: 1em; + white-space: nowrap; } .radial {