Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Conversation

jeffmaury
Copy link
Member

Fixes #324

Signed-off-by: Jeff MAURY [email protected]

What is the purpose of this change? What does it change?

Was the change discussed in an issue?

fixes #???

How to test changes?

@jeffmaury jeffmaury requested a review from sbouchet July 6, 2021 12:09
@jeffmaury jeffmaury marked this pull request as ready for review July 6, 2021 12:09
@@ -274,7 +281,7 @@ private void loadModel() {
for (TreeNode nodeObject : Collections.list(rootNode.children())) {
DefaultMutableTreeNode node = (DefaultMutableTreeNode) nodeObject;
ComponentType type = (ComponentType) node.getUserObject();
if (type.getName().equals(model.getComponentTypeName())) {
if (type.getName().equals(model.getSelectedComponentType().getName())) {
Copy link
Collaborator

@sbouchet sbouchet Jul 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ran into an issue where there is multiple registry with same name, and when I want to switch from the default selected one to another. the UI still select the first one.
test can be performed by duplicating the defualt registry and try to select the same component type in the duplicated registry.

jeffmaury added 2 commits July 7, 2021 16:36
- Match component types per registry
- Select component type only for projects without devfile

Signed-off-by: Jeff MAURY <[email protected]>
Signed-off-by: Jeff MAURY <[email protected]>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 7, 2021

Copy link
Collaborator

@sbouchet sbouchet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new commits fixed my issue. LGTM.

@jeffmaury jeffmaury merged commit 70e105d into redhat-developer:main Jul 8, 2021
@jeffmaury jeffmaury deleted the GH-324 branch July 8, 2021 10:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve user experience on the create component
2 participants