diff --git a/app/src/main/java/org/jboss/hal/client/configuration/subsystem/microprofile/AddConfigSourceWizard.java b/app/src/main/java/org/jboss/hal/client/configuration/subsystem/microprofile/AddConfigSourceWizard.java index c3750a7bac..6ddd6c5e78 100644 --- a/app/src/main/java/org/jboss/hal/client/configuration/subsystem/microprofile/AddConfigSourceWizard.java +++ b/app/src/main/java/org/jboss/hal/client/configuration/subsystem/microprofile/AddConfigSourceWizard.java @@ -15,9 +15,8 @@ */ package org.jboss.hal.client.configuration.subsystem.microprofile; -import java.util.LinkedHashMap; -import java.util.Map; - +import elemental2.dom.HTMLDivElement; +import elemental2.dom.HTMLElement; import org.jboss.elemento.HtmlContentBuilder; import org.jboss.hal.ballroom.LabelBuilder; import org.jboss.hal.ballroom.form.Form; @@ -39,11 +38,10 @@ import org.jboss.hal.resources.Names; import org.jboss.hal.resources.Resources; -import elemental2.dom.HTMLDivElement; -import elemental2.dom.HTMLElement; +import java.util.LinkedHashMap; +import java.util.Map; import static java.util.Arrays.asList; - import static org.jboss.elemento.Elements.div; import static org.jboss.elemento.Elements.p; import static org.jboss.elemento.Elements.setVisible; @@ -182,6 +180,7 @@ class SourceStep extends WizardStep { String id = Ids.build(Ids.MICRO_PROFILE_CONFIG_SOURCE, SOURCE, Ids.FORM); Metadata emptyMetadata = Metadata.empty(); nameItem = new NameItem(); + nameItem.setRequired(false); sourceItem = new RadioItem(SOURCE, resources.constants().source(), asList(new String[] { CLASS, DIR, PROPERTIES }), false); sourceItem.setName(SOURCE); @@ -209,6 +208,7 @@ public HTMLElement element() { @Override protected void onShow(Context context) { + nameItem.setRequired(true); nameItem.setValue(context.name); sourceItem.setValue(context.source); form.edit(context.modelNode);