changes on hide-windows to ui/src/app/applications/components/application-status-panel/application-status-panel.tsx, (#2459)

This commit is contained in:
Alex Collins 2019-10-09 16:33:55 -07:00 committed by GitHub
parent 138ec15834
commit 2e05e50fcb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -117,11 +117,15 @@ export const ApplicationStatusPanel = ({application, showOperation, showConditio
<React.Fragment>
<div className='application-status-panel__item columns small-2' style={{position: 'relative'}}>
<div className='application-status-panel__item-value'>
<ApplicationSyncWindowStatusIcon project={application.spec.project} state={data}/>
{tooltip('The aggregate state of sync windows for this app. ' +
'Red: no syncs allowed. ' +
'Yellow: manual syncs allowed. ' +
'Green: all syncs allowed')}
{data.assignedWindows && (
<React.Fragment>
<ApplicationSyncWindowStatusIcon project={application.spec.project} state={data}/>
{tooltip('The aggregate state of sync windows for this app. ' +
'Red: no syncs allowed. ' +
'Yellow: manual syncs allowed. ' +
'Green: all syncs allowed')}
</React.Fragment>
)}
</div>
</div>
</React.Fragment>