Skip to content

Commit

Permalink
ENH - Disable ability to edit locked environments (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
steff456 authored Jan 31, 2024
1 parent a4aae14 commit 788310f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ export const EnvironmentDetailsHeader = ({
</Typography>
{mode === EnvironmentDetailsModes.READ && (
<StyledButtonPrimary
// TODO: Add this prop when the toggle button (YAML view) feature is added to the read-only view. #213
// disabled={!showEditButton}
disabled={!showEditButton}
onClick={() =>
dispatch(modeChanged(EnvironmentDetailsModes.EDIT))
}
Expand Down

0 comments on commit 788310f

Please sign in to comment.