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

This commit is contained in:
ta264
2020-05-18 21:36:48 +01:00
committed by Qstick
parent 786247e9bc
commit 44d73f3e7e
4 changed files with 47 additions and 8 deletions
@@ -4,18 +4,19 @@ import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { testAllDownloadClients, testAllIndexers } from 'Store/Actions/settingsActions';
import { fetchHealth } from 'Store/Actions/systemActions';
import createHealthCheckSelector from 'Store/Selectors/createHealthCheckSelector';
import Health from './Health';
function createMapStateToProps() {
return createSelector(
createHealthCheckSelector(),
(state) => state.system.health,
(state) => state.settings.downloadClients.isTestingAll,
(state) => state.settings.indexers.isTestingAll,
(health, isTestingAllDownloadClients, isTestingAllIndexers) => {
(items, health, isTestingAllDownloadClients, isTestingAllIndexers) => {
const {
isFetching,
isPopulated,
items
isPopulated
} = health;
return {