Skip to content

Commit

Permalink
refactor: move ui messages before migrate/recall request
Browse files Browse the repository at this point in the history
Signed-off-by: Trae Yelovich <trae.yelovich@broadcom.com>
  • Loading branch information
traeok committed Nov 21, 2024
1 parent 5a8f8d1 commit 21969eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/zowe-explorer/src/dataset/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1357,8 +1357,8 @@ export async function hMigrateDataSet(
if (Profiles.getInstance().validProfile !== api.ValidProfileEnum.INVALID) {
const { dataSetName } = dsUtils.getNodeLabels(node);
try {
const response = await ZoweExplorerApiRegister.getMvsApi(node.getProfile()).hMigrateDataSet(dataSetName);
api.Gui.showMessage(localize("hMigrateDataSet.requestSent", "Migration of data set {0} requested.", dataSetName));
const response = await ZoweExplorerApiRegister.getMvsApi(node.getProfile()).hMigrateDataSet(dataSetName);
datasetProvider.refreshElement(node.getParent());
return response;
} catch (err) {
Expand Down Expand Up @@ -1386,8 +1386,8 @@ export async function hRecallDataSet(
if (Profiles.getInstance().validProfile !== api.ValidProfileEnum.INVALID) {
const { dataSetName } = dsUtils.getNodeLabels(node);
try {
const response = await ZoweExplorerApiRegister.getMvsApi(node.getProfile()).hRecallDataSet(dataSetName);
api.Gui.showMessage(localize("hRecallDataSet.requestSent", "Recall of data set {0} requested.", dataSetName));
const response = await ZoweExplorerApiRegister.getMvsApi(node.getProfile()).hRecallDataSet(dataSetName);
datasetProvider.refreshElement(node.getSessionNode());
return response;
} catch (err) {
Expand Down

0 comments on commit 21969eb

Please sign in to comment.