smitajoshi12 commented on code in PR #3929:
URL: https://github.com/apache/ozone/pull/3929#discussion_r1012553756


##########
hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/components/autoReloadPanel/autoReloadPanel.tsx:
##########
@@ -49,9 +51,12 @@ class AutoReloadPanel extends 
React.Component<IAutoReloadPanelProps> {
         >
           {moment(lastRefreshed).format('LT')}
         </Tooltip>
-      );
-
-      const omDBDeltaFullToolTip = <span>
+       );
+    
+     const omSyncStatusDisplay = omStatus === '' ? '' : omStatus ? <div>OM DB 
update is successfully triggered.</div> : <div>OM DB update is already 
running.</div>;

Review Comment:
   omStatus may contain three values  Empty space when we are not clicking to 
button and true and false depending upon  END Point Response.
   
   sync trigger endpoint returns false: update button tooltip can show "OM DB 
update is already running", and becomes gray and unclickable
   sync trigger endpoint returns true: update button tooltip can show "OM DB 
update is successfully triggered", also becomes gray and unclickable



-- 
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]

Reply via email to