Fix registration of component

Signed-off-by: josh <josh.timmons@hashicorp.com>
This commit is contained in:
josh
2023-06-04 15:30:32 -04:00
parent 285de62914
commit 523af24224
6 changed files with 65 additions and 12 deletions
@@ -113,8 +113,10 @@ import {
EntityUserProfileCard,
} from '@backstage/plugin-org';
import {
EntityNomadContent,
EntityNomadAllocationListTable,
EntityNomadJobVersionListCard,
isNomadAllocationsAvailable,
isNomadJobIDAvailable,
} from '@backstage/plugin-nomad';
import {
EntityPagerDutyCard,
@@ -176,7 +178,6 @@ import {
isLinguistAvailable,
EntityLinguistCard,
} from '@backstage/plugin-linguist';
import { isNomadJobIDAvailable } from '@backstage/plugin-nomad';
const customEntityFilterKind = ['Component', 'API', 'System'];
@@ -450,7 +451,7 @@ const overviewContent = (
<EntitySwitch>
<EntitySwitch.Case if={isNomadJobIDAvailable}>
<Grid item sm={4}>
<Grid item md={6} xs={12}>
<EntityNomadJobVersionListCard />
</Grid>
</EntitySwitch.Case>
@@ -514,8 +515,12 @@ const serviceEntityPage = (
<EntityKubernetesContent />
</EntityLayout.Route>
<EntityLayout.Route path="/nomad" title="Nomad">
<EntityNomadContent />
<EntityLayout.Route
if={isNomadAllocationsAvailable}
path="/nomad"
title="Nomad"
>
<EntityNomadAllocationListTable />
</EntityLayout.Route>
<EntityLayout.Route path="/pull-requests" title="Pull Requests">