Improved changeset note

Signed-off-by: Andre Wanlin <awanlin@rapidrtc.com>
This commit is contained in:
Andre Wanlin
2022-04-03 15:39:56 -05:00
parent cb592bfce7
commit 8d3f09e88c
+21 -1
View File
@@ -2,4 +2,24 @@
'@backstage/plugin-org': patch
---
Provides the ability to hide the relations toggle as well as setting a default relation type
Provides the ability to hide the relations toggle on the `OwnershipCard` as well as setting a default relation type.
To hide the toggle simply include the `hideRelationsToggle` prop like this:
```tsx
<EntityOwnershipCard
variant="gridItem"
entityFilterKind={customEntityFilterKind}
hideRelationsToggle
/>
```
To set the default relation type, add the `relationsType` prop with a value of direct or aggregated, the default if not provided is direct. Here is an example:
```tsx
<EntityOwnershipCard
variant="gridItem"
entityFilterKind={customEntityFilterKind}
relationsType="aggregated"
/>
```