Skip to content

Commit 998648a

Browse files
committed
#3907 disable change req buttton for leadership crs
1 parent a8215d3 commit 998648a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/frontend/src/pages/ProjectDetailPage/ProjectForm/ProjectForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ const ProjectFormContainer: React.FC<ProjectFormContainerProps> = ({
241241
variant="contained"
242242
onClick={() => setIsModalOpen(true)}
243243
sx={{ mx: 1 }}
244-
disabled={changeRequestInputExists}
244+
disabled={changeRequestInputExists || onlyLeadershipChanged}
245245
>
246246
Create Change Request
247247
</NERButton>

src/frontend/src/pages/WorkPackageForm/WorkPackageFormView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ const WorkPackageFormView: React.FC<WorkPackageFormViewProps> = ({
376376
<HelpIcon style={{ fontSize: '1.5em', color: 'lightgray' }} />
377377
</Tooltip>
378378
<NERButton
379-
disabled={!!changeRequestInputExists}
379+
disabled={!!changeRequestInputExists || onlyLeadershipChanged}
380380
variant="contained"
381381
onClick={() => setIsModalOpen(true)}
382382
sx={{ mx: 1 }}

0 commit comments

Comments
 (0)