Skip to content

Commit

Permalink
render platformsh tab based on availability
Browse files Browse the repository at this point in the history
  • Loading branch information
zeshanziya committed Aug 30, 2024
1 parent 6a16643 commit 39d3bfa
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions packages/app/src/components/catalog/EntityPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ import {
EntityKubernetesContent,
isKubernetesAvailable,
} from '@backstage/plugin-kubernetes';
import { EntityPlatformshContents } from '@internal/backstage-plugin-platformsh';
import {
EntityPlatformshContents,
isPlatformshAvailable,
} from '@internal/backstage-plugin-platformsh';

const techdocsContent = (
<EntityTechdocsContent>
Expand Down Expand Up @@ -224,7 +227,11 @@ const websiteEntityPage = (
<EntityLayout.Route path="/docs" title="Docs">
{techdocsContent}
</EntityLayout.Route>
<EntityLayout.Route path="/platformsh" title="Platformsh">
<EntityLayout.Route
path="/platformsh"
title="Platformsh"
if={isPlatformshAvailable}
>
<EntityPlatformshContents />
</EntityLayout.Route>
</EntityLayout>
Expand Down

0 comments on commit 39d3bfa

Please sign in to comment.