Merge pull request #29410 from backstage/camilaibs/fix-catalog-table-search-bar

Fix default catalog table search
This commit is contained in:
Ben Lambert
2025-04-01 11:10:55 +01:00
committed by GitHub
2 changed files with 9 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog': patch
---
Fix the default catalog table search behavior by using the catalog table toolbar for all table variations (including when pagination mode is none).
@@ -49,6 +49,7 @@ import { defaultCatalogTableColumnsFunc } from './defaultCatalogTableColumnsFunc
import { useTranslationRef } from '@backstage/core-plugin-api/alpha';
import { catalogTranslationRef } from '../../alpha/translation';
import { FavoriteToggleIcon } from '@backstage/core-components';
import { CatalogTableToolbar } from './CatalogTableToolbar';
/**
* Props for {@link CatalogTable}.
@@ -251,6 +252,9 @@ export const CatalogTable = (props: CatalogTableProps) => {
actions={actions}
subtitle={subtitle}
emptyContent={emptyContent}
components={{
Toolbar: CatalogTableToolbar,
}}
/>
);
};