Don't display an overlay in case the time sync check fails. (#6164)
* Small improvements to time estimation. * Temporarily disable NTP time check by default.
This commit is contained in:
committed by
Arkadiy Paronyan
parent
0209c6e0ff
commit
9902714fb4
@@ -228,9 +228,10 @@ export default class Status {
|
||||
|
||||
_overallStatus = (health) => {
|
||||
const all = [health.peers, health.sync, health.time].filter(x => x);
|
||||
const allNoTime = [health.peers, health.sync].filter(x => x);
|
||||
const statuses = all.map(x => x.status);
|
||||
const bad = statuses.find(x => x === STATUS_BAD);
|
||||
const needsAttention = statuses.find(x => x === STATUS_WARN);
|
||||
const needsAttention = allNoTime.map(x => x.status).find(x => x === STATUS_WARN);
|
||||
const message = all.map(x => x.message).filter(x => x);
|
||||
|
||||
if (all.length) {
|
||||
|
||||
@@ -35,7 +35,7 @@ const initialState = {
|
||||
status: DEFAULT_STATUS
|
||||
},
|
||||
overall: {
|
||||
isReady: false,
|
||||
isNotReady: true,
|
||||
status: DEFAULT_STATUS,
|
||||
message: []
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@ class SyncWarning extends Component {
|
||||
|
||||
function mapStateToProps (state) {
|
||||
const { health } = state.nodeStatus;
|
||||
const isNotAvailableYet = health.overall.isReady;
|
||||
const isNotAvailableYet = health.overall.isNotReady;
|
||||
const isOk = isNotAvailableYet || health.overall.status === 'ok';
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user