Skip to content

Commit

Permalink
hide edit button when status change to complete
Browse files Browse the repository at this point in the history
  • Loading branch information
binggaofw committed Jul 17, 2023
1 parent d577b23 commit 832ff2f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/frontend/src/components/public/PIASubHeader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,13 @@ function PIASubHeader({
const showSaveAndEditButton = () => {
// we may revisit this part later for standard PIA
if (mode === 'view' && pia.status === PiaStatuses.CPO_REVIEW) return false;
else if (mode === 'view' && pia.status === PiaStatuses.FINAL_REVIEW)
else if (
mode === 'view' &&
(pia.status === PiaStatuses.FINAL_REVIEW ||
pia.status === PiaStatuses.COMPLETE)
)
return false;

return true;
};
const showSubmitButton = () => {
Expand Down

0 comments on commit 832ff2f

Please sign in to comment.