Skip to content

Commit

Permalink
Merge pull request #308 from CBIIT/CRDCDH-852
Browse files Browse the repository at this point in the history
CRDCDH-852 Disable Submit for orphaned files
  • Loading branch information
amattu2 authored Mar 21, 2024
2 parents 160a7b4 + 4152ac8 commit b9bef2f
Show file tree
Hide file tree
Showing 4 changed files with 289 additions and 54 deletions.
6 changes: 1 addition & 5 deletions src/content/dataSubmissions/DataSubmission.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -368,11 +368,7 @@ const DataSubmission: FC<Props> = ({ submissionId, tab = URLTabs.DATA_ACTIVITY }
return { disable: true, isAdminOverride: false };
}

return shouldDisableSubmit(
data.getSubmission.metadataValidationStatus,
data.getSubmission.fileValidationStatus,
user?.role
);
return shouldDisableSubmit(data.getSubmission, user?.role);
},
[data?.getSubmission, user]
);
Expand Down
1 change: 1 addition & 0 deletions src/content/dataSubmissions/ErrorDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ const StyledErrorItem = styled(Typography)({
fontStyle: "normal",
fontWeight: 400,
lineHeight: "22px",
wordBreak: "break-word"
});

const StyledErrors = styled(Stack)({
Expand Down
Loading

0 comments on commit b9bef2f

Please sign in to comment.