fix: default catalog table search

Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
Camila Belo
2025-03-27 21:45:06 +01:00
parent 8ab9af844c
commit 3971a7a755
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,
}}
/>
);
};