Skip to content

Commit

Permalink
feat: display auto sync status in application details view (#11200)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Eftimie <alex.eftimie@getyourguide.com>
Co-authored-by: Remington Breeze <remington@breeze.software>
  • Loading branch information
alexef and rbreeze committed Nov 18, 2022
1 parent 2173b87 commit a72b262
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,17 @@ export const ApplicationStatusPanel = ({application, showOperation, showConditio
</div>
<div className='application-status-panel__item-value__revision'>{syncStatusMessage(application)}</div>
</div>
<div className='application-status-panel__item-name'>
{application.status && application.status.sync && application.status.sync.revision && (
{application.status && application.status.sync && application.status.sync.revision && !application.spec.source.chart && (
<div className='application-status-panel__item-name'>
<RevisionMetadataPanel
appName={application.metadata.name}
appNamespace={application.metadata.namespace}
type={application.spec.source.chart && 'helm'}
revision={application.status.sync.revision}
/>
)}
</div>
</div>
)}
<div className='application-status-panel__item-name'>{application.spec.syncPolicy?.automated ? 'Auto sync is enabled.' : 'Auto sync is not enabled.'}</div>
</React.Fragment>
</div>
{appOperationState && (
Expand Down

0 comments on commit a72b262

Please sign in to comment.