Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/openshift/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,10 +448,8 @@ export class Component extends OpenShiftItem {

if (!componentTypeVersion) return null;

window.showInformationMessage('Do you want to clone git repository for created Component?', 'Yes', 'No').then((value) => {
value === 'Yes' && commands.executeCommand('git.clone', repoURI);
});

const response = await window.showInformationMessage('Do you want to clone git repository for created Component?', 'Yes', 'No');
if (response === 'Yes') await commands.executeCommand('git.clone', repoURI);
await Component.odo.createComponentFromGit(application, componentTypeName, componentTypeVersion, componentName, repoURI, workspacePath, gitRef.label);
return `Component '${componentName}' successfully created`;
}
Expand Down