feat(plugins/adr): configurable component header title
Signed-off-by: Axel Koehler <axel@staffbase.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-adr': minor
|
||||
---
|
||||
|
||||
configurable component header title
|
||||
@@ -160,8 +160,9 @@ const AdrListContainer = (props: {
|
||||
export const EntityAdrContent = (props: {
|
||||
contentDecorators?: AdrContentDecorator[];
|
||||
filePathFilterFn?: AdrFilePathFilterFn;
|
||||
headerTitle?: string;
|
||||
}) => {
|
||||
const { contentDecorators, filePathFilterFn } = props;
|
||||
const { contentDecorators, filePathFilterFn, headerTitle } = props;
|
||||
const classes = useStyles();
|
||||
const { entity } = useEntity();
|
||||
const [adrList, setAdrList] = useState<AdrFileInfo[]>([]);
|
||||
@@ -214,7 +215,7 @@ export const EntityAdrContent = (props: {
|
||||
|
||||
return (
|
||||
<Content>
|
||||
<ContentHeader title="Architecture Decision Records">
|
||||
<ContentHeader title={headerTitle ?? 'Architecture Decision Records'}>
|
||||
{appSupportConfigured && <SupportButton />}
|
||||
</ContentHeader>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user