Update display msgs when no entities exist
Signed-off-by: Adam Harvey <adam.harvey@dxc.com>
This commit is contained in:
@@ -72,9 +72,9 @@ export const ConsumedApisCard = ({ variant = 'gridItem' }: Props) => {
|
||||
variant={variant}
|
||||
emptyContent={
|
||||
<div>
|
||||
No Component consumes this API.{' '}
|
||||
This {entity.kind.toLowerCase()} does not consume any APIs.{' '}
|
||||
<Link to="https://backstage.io/docs/features/software-catalog/descriptor-format#specconsumesapis-optional">
|
||||
Learn how to consume APIs.
|
||||
(Learn how to change this.)
|
||||
</Link>
|
||||
</div>
|
||||
}
|
||||
|
||||
@@ -76,9 +76,9 @@ export const HasApisCard = ({ variant = 'gridItem' }: Props) => {
|
||||
variant={variant}
|
||||
emptyContent={
|
||||
<div>
|
||||
No API is part of this system.{' '}
|
||||
This {entity.kind.toLowerCase()} does not contain any APIs.{' '}
|
||||
<Link to="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-api">
|
||||
Learn how to add APIs.
|
||||
(Learn how to add APIs.)
|
||||
</Link>
|
||||
</div>
|
||||
}
|
||||
|
||||
@@ -72,9 +72,9 @@ export const ProvidedApisCard = ({ variant = 'gridItem' }: Props) => {
|
||||
variant={variant}
|
||||
emptyContent={
|
||||
<div>
|
||||
No component provides this API.{' '}
|
||||
This {entity.kind.toLowerCase()} does not provide it's own APIs.{' '}
|
||||
<Link to="https://backstage.io/docs/features/software-catalog/descriptor-format#specprovidesapis-optional">
|
||||
Learn how to provide APIs.
|
||||
(Learn how to change this.)
|
||||
</Link>
|
||||
</div>
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ export const ConsumingComponentsCard = ({ variant = 'gridItem' }: Props) => {
|
||||
<div>
|
||||
No component consumes this API.{' '}
|
||||
<Link to="https://backstage.io/docs/features/software-catalog/descriptor-format#specconsumesapis-optional">
|
||||
Learn how to consume APIs.
|
||||
(Learn how to consume APIs.)
|
||||
</Link>
|
||||
</div>
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ export const ProvidingComponentsCard = ({ variant = 'gridItem' }: Props) => {
|
||||
<div>
|
||||
No component provides this API.{' '}
|
||||
<Link to="https://backstage.io/docs/features/software-catalog/descriptor-format#specprovidesapis-optional">
|
||||
Learn how to provide APIs.
|
||||
(Learn how to provide APIs.)
|
||||
</Link>
|
||||
</div>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user