Skip to content

Commit 7f4f2bb

Browse files
committed
Provide default value for component name input request
This PR fixes #2181. Signed-off-by: Denis Golovin dgolovin@redhat.com
1 parent 42d891c commit 7f4f2bb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/openshift/component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,8 @@ export class Component extends OpenShiftItem {
635635
if (devfileYaml && devfileYaml.metadata && devfileYaml.metadata.name) {
636636
initialNameValue = devfileYaml.metadata.name;
637637
}
638+
} else {
639+
initialNameValue = path.basename(folder.fsPath);
638640
}
639641

640642
const componentName = await Component.getName(

0 commit comments

Comments
 (0)