diff --git a/src/containers/Tenant/ObjectSummary/ObjectSummary.tsx b/src/containers/Tenant/ObjectSummary/ObjectSummary.tsx index 4ccefd301f..9d57bb697b 100644 --- a/src/containers/Tenant/ObjectSummary/ObjectSummary.tsx +++ b/src/containers/Tenant/ObjectSummary/ObjectSummary.tsx @@ -180,16 +180,31 @@ export function ObjectSummary({ const title = ; - const getDatabaseOverview = () => [ - { - label: i18n('summary.paths'), - value: PathDescription?.DomainDescription?.PathsInside, - }, - { - label: i18n('summary.shards'), - value: PathDescription?.DomainDescription?.ShardsInside, - }, - ]; + const getDatabaseOverview = () => { + const {PathsInside, ShardsInside, PathsLimit, ShardsLimit} = + PathDescription?.DomainDescription ?? {}; + let paths = formatNumber(PathsInside); + let shards = formatNumber(ShardsInside); + + if (paths && PathsLimit) { + paths = `${paths} / ${formatNumber(PathsLimit)}`; + } + + if (shards && ShardsLimit) { + shards = `${shards} / ${formatNumber(ShardsLimit)}`; + } + + return [ + { + label: i18n('summary.paths'), + value: paths, + }, + { + label: i18n('summary.shards'), + value: shards, + }, + ]; + }; const getPathTypeOverview: Record InfoViewerItem[]) | undefined> = { [EPathType.EPathTypeInvalid]: undefined,