Skip to content

Commit

Permalink
Restoring the review stage
Browse files Browse the repository at this point in the history
  • Loading branch information
sakshibobade21 committed Oct 9, 2024
1 parent bece60f commit f7176b3
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/renderer/components/stages/ReviewInstallation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { setActiveStep } from './progress/activeStepSlice';
import { setNextStepEnabled } from '../configuration-wizard/wizardSlice';
import { getStageDetails } from "../../../services/StageDetails";
import { TYPE_YAML, TYPE_OUTPUT } from '../common/Utils';
import { getCompleteProgress, getZoweVersion, updateStepSkipStatus } from "./progress/StageProgressStatus";
import { getCompleteProgress, updateStepSkipStatus } from "./progress/StageProgressStatus";

import '../../styles/ReviewInstallation.css';

Expand All @@ -43,8 +43,6 @@ const ReviewInstallation = () => {

const connectionArgs = useAppSelector(selectConnectionArgs);

const zowePaxVersion: number = getZoweVersion();

const theme = createTheme();

const completeProgress = getCompleteProgress();
Expand Down Expand Up @@ -72,13 +70,8 @@ const ReviewInstallation = () => {

const stageProgress = stageProgressStatus.every(status => status === true);
const subStageProgress = subStageProgressStatus.every(status => status === true);
const vsamIndex = subStageProgressStatus.findIndex(status => status === completeProgress.vsamStatus);
const allExceptVsamTrue = subStageProgressStatus.filter((_, index) => index !== vsamIndex).every(status => status === true);

// For Zowe versions 3 and above, initializing VSAM is optional
if (zowePaxVersion < 3 && stageProgress && subStageProgress) {
updateProgress(true);
} else if(zowePaxVersion >= 3 && allExceptVsamTrue) {
if (stageProgress && subStageProgress) {
updateProgress(true);
} else {
updateProgress(false);
Expand Down

0 comments on commit f7176b3

Please sign in to comment.