New: Warn if UI won't update due to SignalR errors

Signed-off-by: Robin Dadswell <robin@dadswell.email>
This commit is contained in:
ta264
2020-05-18 21:36:48 +01:00
committed by nitsua
parent da2bc75eab
commit 3bfdd4aafa
4 changed files with 44 additions and 8 deletions
@@ -10,13 +10,14 @@ function createMapStateToProps() {
return createSelector(
createHealthCheckSelector(),
(state) => state.app,
createHealthCheckSelector(),
(state) => state.system.health,
(app, health) => {
const count = health.items.length;
(app, items, health) => {
const count = items.length;
let errors = false;
let warnings = false;
health.items.forEach((item) => {
items.forEach((item) => {
if (item.type === 'error') {
errors = true;
}