smitajoshi12 commented on code in PR #3761:
URL: https://github.com/apache/ozone/pull/3761#discussion_r974590290
##########
hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/components/autoReloadPanel/autoReloadPanel.tsx:
##########
@@ -38,21 +42,39 @@ class AutoReloadPanel extends
React.Component<IAutoReloadPanelProps> {
};
render() {
- const {onReload, lastUpdated, isLoading} = this.props;
- const lastUpdatedText = lastUpdated === 0 ? 'NA' :
+ const {onReload, lastUpdated,
lastUpdatedOM,lastUpdateOMSync,isLoading,lastUpdatedOMText,lastUpdateOMSyncText}
= this.props;
+ const textOMSync= <span>{lastUpdatedOMText} :
{moment(lastUpdatedOM).format('ll LTS') }<br/>
+ {lastUpdateOMSyncText} : {moment(lastUpdateOMSync).format('ll
LTS')}</span>
+ const lastUpdatedText = lastUpdated === 0 || lastUpdated === undefined?
'NA' :
(
<Tooltip
placement='bottom' title={moment(lastUpdated).format('ll LTS')}
>
{moment(lastUpdated).format('LTS')}
</Tooltip>
);
+ const lastUpdatedOMInfo = lastUpdatedOM === 0 || lastUpdatedOM ===
undefined || lastUpdateOMSync===0 || lastUpdateOMSync=== undefined ? 'NA' :
+ (
+ <Tooltip
+ placement='bottom' title={textOMSync}
+ >
+ {moment(lastUpdatedOM).format('LTS')}
+ </Tooltip>
+ );
+ const lastUpdatedOMDisplay= lastUpdatedOM === 0 || lastUpdatedOM ===
undefined || lastUpdateOMSync===0 || lastUpdateOMSync=== undefined ? '' :
Review Comment:
Done Changes
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]