Skip to content

Commit

Permalink
feat(security): Remove Deactivate button on Schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
cicoub13 committed Apr 2, 2024
1 parent 826df41 commit 348a2ae
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions client/schema/service-details/VersionDetails.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { MainViewContainer } from '../../components/MainViewContainer';

// eslint-disable-next-line complexity
export default function VersionDetails() {
const displayDeleteButton = Boolean(false);
const history = useHistory();
const { serviceName, schemaId, subtab, selectedEntity, selectedProperty } =
useSchemaParam();
Expand Down Expand Up @@ -120,12 +121,14 @@ export default function VersionDetails() {
</VersionHeaderTime>
{urlInfo}
</div>
<div>
<ButtonGroup>
<DeactivateButton schema={data.schema} />
{commitButton}
</ButtonGroup>
</div>
{displayDeleteButton && (
<div>
<ButtonGroup>
<DeactivateButton schema={data.schema} />
{commitButton}
</ButtonGroup>
</div>
)}
</VersionHeader>

<Tabs
Expand Down

0 comments on commit 348a2ae

Please sign in to comment.