feat: add entityRef to Entity Inspector view
Signed-off-by: Chris Langhout <clanghout@bol.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-catalog-react': patch
|
||||
---
|
||||
|
||||
Add EntityRef to Entity Inspector UI
|
||||
@@ -36,6 +36,7 @@ import {
|
||||
ListSubheader,
|
||||
} from './common';
|
||||
import { EntityKindIcon } from './EntityKindIcon';
|
||||
import { stringifyEntityRef } from '@backstage/catalog-model';
|
||||
|
||||
const useStyles = makeStyles({
|
||||
root: {
|
||||
@@ -90,6 +91,12 @@ export function OverviewPage(props: { entity: AlphaEntity }) {
|
||||
<ListItemText primary="etag" secondary={metadata.etag} />
|
||||
</ListItem>
|
||||
)}
|
||||
<ListItem>
|
||||
<ListItemText
|
||||
primary="entityRef"
|
||||
secondary={stringifyEntityRef(props.entity)}
|
||||
/>
|
||||
</ListItem>
|
||||
</List>
|
||||
</Container>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user