Skip to content

Commit

Permalink
fix: UI MultiSource - Helm Chart with values.yaml (#18188) (#18200)
Browse files Browse the repository at this point in the history
Signed-off-by: Keith Chong <[email protected]>
  • Loading branch information
keithchong authored May 20, 2024
1 parent 786e141 commit 6530c6f
Showing 1 changed file with 14 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,20 @@ export const ApplicationStatusPanel = ({application, showDiff, showOperation, sh
<div className='application-status-panel__item-name' style={{marginBottom: '0.5em'}}>
{application.spec.syncPolicy?.automated ? 'Auto sync is enabled.' : 'Auto sync is not enabled.'}
</div>
{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={source.chart && 'helm'}
revision={application.status.sync.revision}
/>
</div>
)}
{application.status &&
application.status.sync &&
(hasMultipleSources
? application.status.sync.revisions && application.status.sync.revisions[0] && application.spec.sources && !application.spec.sources[0].chart
: 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={source.chart && 'helm'}
revision={hasMultipleSources ? application.status.sync.revisions[0] : application.status.sync.revision}
/>
</div>
)}
</React.Fragment>
</div>
{appOperationState && (
Expand Down

0 comments on commit 6530c6f

Please sign in to comment.