Skip to content
Permalink
Browse files

[DDW-684] Add isSystemTimeInTolerationMode into de diagnostics screen

  • Loading branch information...
daniloprates committed Jul 11, 2019
1 parent 54bee33 commit 055dfb2bc6f19a40b83b24e69b65503369297c1f
@@ -178,6 +178,11 @@ const messages = defineMessages({
defaultMessage: '!!!System Time Ignored',
description: 'System Time Ignored',
},
systemTimeInTolerationMode: {
id: 'daedalus.diagnostics.dialog.systemTimeInTolerationMode',
defaultMessage: '!!!System Time in Toleration Mode',
description: 'System Time in Toleration Mode',
},
checkingNodeTime: {
id: 'daedalus.diagnostics.dialog.checkingNodeTime',
defaultMessage: '!!!Checking Node Time',
@@ -334,6 +339,7 @@ type Props = {
syncPercentage: number,
localTimeDifference: ?number,
isSystemTimeIgnored: boolean,
isSystemTimeInTolerationMode: boolean,
isSystemTimeCorrect: boolean,
isForceCheckingNodeTime: boolean,
latestLocalBlockTimestamp: number,
@@ -482,6 +488,7 @@ export default class DaedalusDiagnostics extends Component<Props, State> {
onCopyStateDirectoryPath,
nodeConnectionError,
isSystemTimeIgnored,
isSystemTimeInTolerationMode,
onOpenExternalLink,
isDev,
isTestnet,
@@ -786,6 +793,16 @@ export default class DaedalusDiagnostics extends Component<Props, State> {
: intl.formatMessage(messages.statusOff)}
</td>
</tr>
<tr>
<th>
{intl.formatMessage(messages.systemTimeInTolerationMode)}:
</th>
<td className={this.getClass(!isSystemTimeInTolerationMode)}>
{isSystemTimeInTolerationMode
? intl.formatMessage(messages.statusOn)
: intl.formatMessage(messages.statusOff)}
</td>
</tr>
<tr>
<th>{intl.formatMessage(messages.checkingNodeTime)}:</th>
<td>
@@ -68,6 +68,7 @@ export default class DaedalusDiagnosticsDialog extends Component<Props> {
latestLocalBlockTimestamp,
latestNetworkBlockTimestamp,
isSystemTimeIgnored,
isSystemTimeInTolerationMode,
environment,
diskSpaceAvailable,
tlsConfig,
@@ -125,6 +126,7 @@ export default class DaedalusDiagnosticsDialog extends Component<Props> {
isSystemTimeCorrect={isSystemTimeCorrect}
isForceCheckingNodeTime={forceCheckTimeDifferenceRequest.isExecuting}
isSystemTimeIgnored={isSystemTimeIgnored}
isSystemTimeInTolerationMode={isSystemTimeInTolerationMode}
latestLocalBlockTimestamp={latestLocalBlockTimestamp}
latestNetworkBlockTimestamp={latestNetworkBlockTimestamp}
nodeConnectionError={
@@ -95,6 +95,7 @@
"daedalus.diagnostics.dialog.system.info": "SYSTEM INFO",
"daedalus.diagnostics.dialog.systemTimeCorrect": "System Time Correct",
"daedalus.diagnostics.dialog.systemTimeIgnored": "System Time Ignored",
"daedalus.diagnostics.dialog.systemTimeInTolerationMode": "!!!System Time in Toleration Mode",
"environment.apiName.cardano": "!!!Cardano",
"environment.currency.ada": "!!!Ada",
"global.assuranceLevel.normal": "!!!Normal",

0 comments on commit 055dfb2

Please sign in to comment.
You can’t perform that action at this time.