Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
Signed-off-by: Billie Simmons <49491949+JillieBeanSim@users.noreply.github.com>
  • Loading branch information
JillieBeanSim committed Jul 23, 2024
1 parent aca7442 commit 4f1c8aa
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions packages/zowe-explorer/src/utils/ProfilesUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -512,24 +512,23 @@ export class ProfilesUtils {
ZoweLogger.warn(v1ProfileErrorMsg);
const convertButton = vscode.l10n.t("Convert Existing Profiles");
const createButton = vscode.l10n.t("Create New");
await Gui.infoMessage(v1ProfileErrorMsg, { items: [convertButton, createButton], vsCodeOpts: { modal: true } }).then(async (selection) => {
switch (selection) {
case createButton: {
ZoweLogger.info("Create new team configuration chosen.");
vscode.commands.executeCommand("zowe.ds.addSession", SharedTreeProviders.ds);
break;
}
case convertButton: {
ZoweLogger.info("Convert v1 profiles to team configuration chosen.");
await this.convertV1Profs();
break;
}
default: {
Gui.infoMessage(vscode.l10n.t("Operation cancelled"));
break;
}
const selection = await Gui.infoMessage(v1ProfileErrorMsg, { items: [convertButton, createButton], vsCodeOpts: { modal: true } });
switch (selection) {
case createButton: {
ZoweLogger.info("Create new team configuration chosen.");
vscode.commands.executeCommand("zowe.ds.addSession", SharedTreeProviders.ds);
break;
}
});
case convertButton: {
ZoweLogger.info("Convert v1 profiles to team configuration chosen.");
await this.convertV1Profs();
break;
}
default: {
Gui.infoMessage(vscode.l10n.t("Operation cancelled"));
break;
}
}
}

/**
Expand Down

0 comments on commit 4f1c8aa

Please sign in to comment.