From f0aa01bcc2679a22d60f00d567df976c27bc1560 Mon Sep 17 00:00:00 2001 From: Andrew Thauer <6507159+andrewthauer@users.noreply.github.com> Date: Wed, 21 Oct 2020 11:53:26 -0400 Subject: [PATCH] feat(catalog): add simple client side paging --- .changeset/blue-donkeys-exercise.md | 5 +++++ plugins/catalog/src/components/CatalogTable/CatalogTable.tsx | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/blue-donkeys-exercise.md diff --git a/.changeset/blue-donkeys-exercise.md b/.changeset/blue-donkeys-exercise.md new file mode 100644 index 0000000000..4f714e3c97 --- /dev/null +++ b/.changeset/blue-donkeys-exercise.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-catalog': minor +--- + +Add client side paging for catalog table diff --git a/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx b/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx index f5885145b3..4e63c6099b 100644 --- a/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx +++ b/plugins/catalog/src/components/CatalogTable/CatalogTable.tsx @@ -155,7 +155,8 @@ export const CatalogTable = ({ isLoading={loading} columns={columns} options={{ - paging: false, + paging: true, + pageSize: 10, actionsColumnIndex: -1, loadingType: 'linear', showEmptyDataSourceMessage: !loading,