From eb98de60d182295d0a2b5bc6c628d58f8bec8239 Mon Sep 17 00:00:00 2001 From: ryjiang Date: Wed, 21 Aug 2024 16:44:13 +0800 Subject: [PATCH] feat: display partition id Signed-off-by: ryjiang --- .../collections/partitions/Partitions.tsx | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/client/src/pages/databases/collections/partitions/Partitions.tsx b/client/src/pages/databases/collections/partitions/Partitions.tsx index c04f347b..410215a6 100644 --- a/client/src/pages/databases/collections/partitions/Partitions.tsx +++ b/client/src/pages/databases/collections/partitions/Partitions.tsx @@ -191,6 +191,18 @@ const Partitions = () => { ]; const colDefinitions: ColDefinitionsType[] = [ + { + id: 'id', + align: 'left', + needCopy: true, + disablePadding: false, + label: t('id'), + getStyle: () => { + return { + width: 120, + }; + }, + }, { id: 'name', sortType: 'string', @@ -210,12 +222,6 @@ const Partitions = () => { label: t('name'), }, - // { - // id: '_statusElement', - // align: 'left', - // disablePadding: false, - // label: t('status'), - // }, { id: 'rowCount', align: 'left',