Merge pull request #16880 from brianphillips/new-entity-switch-condition

Add isEntityWith helper method to EntitySwitch conditions
This commit is contained in:
Johan Haals
2023-03-21 10:13:10 +01:00
committed by GitHub
6 changed files with 79 additions and 21 deletions
+1 -1
View File
@@ -480,7 +480,7 @@ function isKind(kind: string) {
```
The `@backstage/catalog` plugin provides a couple of built-in conditions,
`isKind`, `isComponentType`, and `isNamespace`.
`isKind`, `isComponentType`, `isResourceType`, `isEntityWith`, and `isNamespace`.
In addition to the `EntitySwitch` component, the catalog plugin also exports a
new `EntityLayout` component. It is a tweaked version and replacement for the