Skip to content

Commit

Permalink
feat(ui): support filter repo when input (#21451)
Browse files Browse the repository at this point in the history
Signed-off-by: linghaoSu <[email protected]>
  • Loading branch information
linghaoSu authored Jan 15, 2025
1 parent 7296201 commit 922c9e9
Showing 1 changed file with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,10 @@ export const ApplicationCreatePanel = (props: {
qeId='application-create-field-repository-url'
field='spec.source.repoURL'
component={AutocompleteField}
componentProps={{items: repos}}
componentProps={{
items: repos,
filterSuggestions: true
}}
/>
</div>
<div className='columns small-2'>
Expand Down Expand Up @@ -396,7 +399,8 @@ export const ApplicationCreatePanel = (props: {
field='spec.source.targetRevision'
component={AutocompleteField}
componentProps={{
items: (selectedChart && selectedChart.versions) || []
items: (selectedChart && selectedChart.versions) || [],
filterSuggestions: true
}}
/>
<RevisionHelpIcon type='helm' />
Expand All @@ -419,7 +423,10 @@ export const ApplicationCreatePanel = (props: {
label='Cluster URL'
qeId='application-create-field-cluster-url'
field='spec.destination.server'
componentProps={{items: clusters.map(cluster => cluster.server)}}
componentProps={{
items: clusters.map(cluster => cluster.server),
filterSuggestions: true
}}
component={AutocompleteField}
/>
</div>
Expand All @@ -430,7 +437,10 @@ export const ApplicationCreatePanel = (props: {
label='Cluster Name'
qeId='application-create-field-cluster-name'
field='spec.destination.name'
componentProps={{items: clusters.map(cluster => cluster.name)}}
componentProps={{
items: clusters.map(cluster => cluster.name),
filterSuggestions: true
}}
component={AutocompleteField}
/>
</div>
Expand Down

0 comments on commit 922c9e9

Please sign in to comment.