@@ -53,6 +53,7 @@ export default function CIContainerRegistryConfig({
53
53
isTemplateView,
54
54
} : CIContainerRegistryConfigProps ) {
55
55
const [ selectedRegistry , setSelectedRegistry ] = useState ( currentRegistry )
56
+ const containerRegistryLabel = `Container Repository ${ selectedRegistry && REGISTRY_TYPE_MAP [ selectedRegistry . registryType ] ?. desiredFormat } `
56
57
57
58
const getCustomRegistryOption = ( registry ) => ( {
58
59
...registry ,
@@ -160,7 +161,7 @@ export default function CIContainerRegistryConfig({
160
161
linkProps : {
161
162
to : URLS . GLOBAL_CONFIG_DOCKER ,
162
163
} ,
163
- startIcon : < Icon name = "ic-add" color = { null } />
164
+ startIcon : < Icon name = "ic-add" color = { null } /> ,
164
165
} ,
165
166
}
166
167
}
@@ -171,12 +172,13 @@ export default function CIContainerRegistryConfig({
171
172
{ registry . error && < label className = "form__error" > { registry . error } </ label > }
172
173
</ div >
173
174
< div className = { `form__field flex-grow-1 ${ configOverrideView ? 'mb-0-imp' : '' } ` } >
174
- < label htmlFor = "" className = "form__label" >
175
- Container Repository
176
- { selectedRegistry && REGISTRY_TYPE_MAP [ selectedRegistry . registryType ] ?. desiredFormat }
177
- </ label >
178
175
{ configOverrideView && ! allowOverride ? (
179
- < span className = "fs-14 fw-4 lh-20 cn-9" > { ciConfig ?. dockerRepository } </ span >
176
+ < >
177
+ < label htmlFor = "" className = "form__label dc__truncate" >
178
+ { containerRegistryLabel }
179
+ </ label >
180
+ < span className = "fs-14 fw-4 lh-20 cn-9" > { ciConfig ?. dockerRepository } </ span >
181
+ </ >
180
182
) : (
181
183
< CustomInput
182
184
placeholder = {
@@ -195,6 +197,7 @@ export default function CIContainerRegistryConfig({
195
197
disabled = { configOverrideView && ! allowOverride }
196
198
data-testid = "container-repository-textbox"
197
199
error = { repository_name . error }
200
+ label = { containerRegistryLabel }
198
201
/>
199
202
) }
200
203
{ ! ciConfig && selectedRegistry ?. registryType === 'ecr' && (
0 commit comments