Skip to content

Commit

Permalink
[DDW-684] Add isSystemTimeInTolerationMode into de diagnostics screen
Browse files Browse the repository at this point in the history
  • Loading branch information
thedanheller committed Jul 11, 2019
1 parent 54bee33 commit 055dfb2
Show file tree
Hide file tree
Showing 11 changed files with 98 additions and 55 deletions.
17 changes: 17 additions & 0 deletions source/renderer/app/components/status/DaedalusDiagnostics.js
Expand Up @@ -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',
Expand Down Expand Up @@ -334,6 +339,7 @@ type Props = {
syncPercentage: number,
localTimeDifference: ?number,
isSystemTimeIgnored: boolean,
isSystemTimeInTolerationMode: boolean,
isSystemTimeCorrect: boolean,
isForceCheckingNodeTime: boolean,
latestLocalBlockTimestamp: number,
Expand Down Expand Up @@ -482,6 +488,7 @@ export default class DaedalusDiagnostics extends Component<Props, State> {
onCopyStateDirectoryPath,
nodeConnectionError,
isSystemTimeIgnored,
isSystemTimeInTolerationMode,
onOpenExternalLink,
isDev,
isTestnet,
Expand Down Expand Up @@ -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>
Expand Down
Expand Up @@ -68,6 +68,7 @@ export default class DaedalusDiagnosticsDialog extends Component<Props> {
latestLocalBlockTimestamp,
latestNetworkBlockTimestamp,
isSystemTimeIgnored,
isSystemTimeInTolerationMode,
environment,
diskSpaceAvailable,
tlsConfig,
Expand Down Expand Up @@ -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={
Expand Down
1 change: 1 addition & 0 deletions source/renderer/app/i18n/locales/de-DE.json
Expand Up @@ -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",
Expand Down

0 comments on commit 055dfb2

Please sign in to comment.