Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
PRUNE_SOME_WARNING
} from '../application-sync-options/application-sync-options';
import {ComparisonStatusIcon, getAppDefaultSource, nodeKey} from '../utils';
import {RevisionFormField} from '../revision-form-field/revision-form-field';

import './application-sync-panel.scss';

Expand All @@ -30,6 +31,7 @@ export const ApplicationSyncPanel = ({application, selectedResource, hide}: {app
const syncStrategy = {} as models.SyncStrategy;
const [isPending, setPending] = React.useState(false);
const source = getAppDefaultSource(application);
const repoType = source?.repoURL?.startsWith('oci://') ? 'oci' : source && Object.prototype.hasOwnProperty.call(source, 'chart') ? 'helm' : 'git';

return (
<Consumer>
Expand Down Expand Up @@ -252,7 +254,7 @@ export const ApplicationSyncPanel = ({application, selectedResource, hide}: {app
Synchronizing application manifests from <a href={source.repoURL}>{source.repoURL}</a>
</h6>
<div className='argo-form-row'>
<FormField formApi={formApi} label='Revision' field='revision' component={Text} />
<RevisionFormField formApi={formApi} repoURL={source.repoURL} repoType={repoType} fieldValue='revision' />
</div>

<div className='argo-form-row'>
Expand Down
Loading