diff --git a/plugins/catalog/api-report.md b/plugins/catalog/api-report.md index 6bb4fcc4a1..f053c15c8a 100644 --- a/plugins/catalog/api-report.md +++ b/plugins/catalog/api-report.md @@ -10,6 +10,7 @@ import { BackstagePlugin } from '@backstage/core-plugin-api'; import { ComponentEntity } from '@backstage/catalog-model'; import { CompoundEntityRef } from '@backstage/catalog-model'; import { Entity } from '@backstage/catalog-model'; +import { EntityOwnerPickerProps } from '@backstage/plugin-catalog-react'; import { ExternalRouteRef } from '@backstage/core-plugin-api'; import { IconComponent } from '@backstage/core-plugin-api'; import { IndexableDocument } from '@backstage/plugin-search-common'; @@ -215,6 +216,8 @@ export interface DefaultCatalogPageProps { // (undocumented) initiallySelectedFilter?: UserListFilterKind; // (undocumented) + ownerPickerMode?: EntityOwnerPickerProps['mode']; + // (undocumented) tableOptions?: TableProps['options']; } diff --git a/plugins/catalog/src/components/CatalogPage/DefaultCatalogPage.tsx b/plugins/catalog/src/components/CatalogPage/DefaultCatalogPage.tsx index b0fb52b4f0..04f39ee66c 100644 --- a/plugins/catalog/src/components/CatalogPage/DefaultCatalogPage.tsx +++ b/plugins/catalog/src/components/CatalogPage/DefaultCatalogPage.tsx @@ -36,6 +36,7 @@ import { UserListPicker, EntityKindPicker, EntityNamespacePicker, + EntityOwnerPickerProps, } from '@backstage/plugin-catalog-react'; import React, { ReactNode } from 'react'; import { createComponentRouteRef } from '../../routes'; @@ -54,6 +55,7 @@ export interface DefaultCatalogPageProps { initialKind?: string; tableOptions?: TableProps['options']; emptyContent?: ReactNode; + ownerPickerMode?: EntityOwnerPickerProps['mode']; } export function DefaultCatalogPage(props: DefaultCatalogPageProps) { @@ -64,6 +66,7 @@ export function DefaultCatalogPage(props: DefaultCatalogPageProps) { initialKind = 'component', tableOptions = {}, emptyContent, + ownerPickerMode, } = props; const orgName = useApi(configApiRef).getOptionalString('organization.name') ?? 'Backstage'; @@ -87,7 +90,7 @@ export function DefaultCatalogPage(props: DefaultCatalogPageProps) { - +