Skip to content

Commit 6324fb4

Browse files
committed
#3883 fixed button disable rather than hide when user doesn't have required rank
1 parent bc51629 commit 6324fb4

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

  • src/frontend/src/pages/ProjectDetailPage/ProjectViewContainer

src/frontend/src/pages/ProjectDetailPage/ProjectViewContainer/BOMTab.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,9 @@ const BOMTab = ({ project }: { project: Project }) => {
9393
>
9494
Show All Columns
9595
</NERButton>
96-
{isAtMostRank('MEMBER', user.role) ? null : (
97-
<NERButton variant="contained" onClick={() => {}} disabled={false}>
98-
Copy Existing BOM
99-
</NERButton>
100-
)}
96+
<NERButton variant="contained" onClick={() => {}} disabled={isAtMostRank('MEMBER', user.role)}>
97+
Copy Existing BOM
98+
</NERButton>
10199
</Box>
102100
<Box display="flex" gap="20px" alignItems="center">
103101
<Box sx={{ backgroundColor: theme.palette.background.paper, padding: '8px 14px 8px 14px', borderRadius: '6px' }}>

0 commit comments

Comments
 (0)