Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions ui/src/components/DestinationStack/Actions/LoadStacks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ const LoadStacks = (props: LoadFileFormatProps) => {
useEffect(() => {
fetchData();
}, []);

return (
<div className="">
<div className="action-summary-wrapper ">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const HorizontalStepper = forwardRef(
});
}
}));

const handleTabStep = (idx: number) => {
if (newMigrationData?.content_mapping?.isDropDownChanged) {
setIsModalOpen(true);
Expand Down Expand Up @@ -156,6 +156,11 @@ const HorizontalStepper = forwardRef(
notificationContent: { text: `Please select a stack to proceed further` },
type: 'warning'
})
} else if (newMigrationData?.destination_stack?.selectedStack?.value !== newMigrationData?.stackDetails?.value) {
return Notification({
notificationContent: { text: `Please save the stack to proceed further` },
type: 'warning'
})
}
else {
setTabStep(idx);
Expand Down
2 changes: 2 additions & 0 deletions ui/src/context/app/app.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ export interface INewMigration {
content_mapping: IContentMapper;
test_migration: ITestMigration;
isprojectMapped: boolean;
stackDetails: IDropDown;
}

export interface IMigrationData {
Expand Down Expand Up @@ -319,6 +320,7 @@ export const DEFAULT_NEW_MIGRATION: INewMigration = {
content_mapping: DEFAULT_CONTENT_MAPPER,
test_migration: DEFAULT_TEST_MIGRATION,
isprojectMapped: false,
stackDetails: DEFAULT_DROPDOWN
};

export const DEFAULT_URL_TYPE: IURLType = {
Expand Down