Skip to content

Commit

Permalink
Merge branch 'main' into 24.09
Browse files Browse the repository at this point in the history
  • Loading branch information
yomybaby committed Dec 5, 2024
2 parents f33f9b2 + 675738b commit 029da95
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions react/src/components/ContainerRegistryEditorModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const ContainerRegistryEditorModal: React.FC<
registry_name: values.registry_name,
url: values.url,
type: values.type,
project: values.type === 'docker' ? 'library' : values.project,
project: values.project,
username: _.isEmpty(values.username) ? null : values.username,
password:
values.isChangedPassword || !containerRegistry
Expand Down Expand Up @@ -285,10 +285,7 @@ const ContainerRegistryEditorModal: React.FC<
? {
...containerRegistry,
}
: {
type: 'docker',
project: 'library',
}
: {}
}
preserve={false}
>
Expand Down Expand Up @@ -448,12 +445,6 @@ const ContainerRegistryEditorModal: React.FC<
value: 'ecr-public',
},
]}
onChange={(value) => {
if (value === 'docker') {
formRef.current?.setFieldValue('project', 'library');
formRef.current?.validateFields(['project']);
}
}}
></Select>
</Form.Item>
<Form.Item
Expand All @@ -478,10 +469,7 @@ const ContainerRegistryEditorModal: React.FC<
},
]}
>
<Input
disabled={getFieldValue('type') === 'docker'}
allowClear
/>
<Input allowClear />
</Form.Item>
);
}}
Expand Down

0 comments on commit 029da95

Please sign in to comment.