Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
added project status validation
  • Loading branch information
snehalsankhe committed May 3, 2024
commit 9435c0c7acd989d63ef2cc942f77ba2c80f8834f
4 changes: 2 additions & 2 deletions ui/src/components/DestinationStack/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ const DestinationStackComponent = ({
//Check for migration Status and lock.
// Status where Migration is to be Locked:
setIsMigrationLocked(
projectData.status === 2 ||
projectData.status === 5
projectData?.status === 2 ||
projectData?.status === 5
);
};
fetchCMSData();
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/LegacyCms/Actions/LoadPrefix.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ const LoadPreFix = (props: LoadSelectCmsProps) => {
version="v2"
error={isError}
/>
{isError && <p className='errorMessage'>Project Name should not be more than 5 chars</p>}
{isError && <p className='errorMessage'>Affix should not be more than 5 chars</p>}
</div>
<div className="col-12 pt-2">
<Button version="v2" disabled={!isCheckedBoxChecked} onClick={handleOnBlur}>
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/LegacyCms/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ const LegacyCMSComponent = ({ legacyCMSData, projectData }: LegacyCMSComponentPr
// Status where Migration is to be Locked:
setIsMigrationLocked(
projectData?.status === 2 ||
projectData.status === 5
projectData?.status === 5
);
};

Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/LegacyCms/legacyCms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
width: 100%;
align-items: center;
padding: 0 !important;
border: 1px solid #dde3ee;
border: 1px solid $color-brand-secondary-lightest;
border-radius: var(--TermCount, 5px);
}
.errorMessage {
Expand Down