@@ -161,6 +161,17 @@ export function ObjectSummary({
161161
162162 const title = < EntityTitle data = { PathDescription } /> ;
163163
164+ const getDatabaseOverview = ( ) => [
165+ {
166+ label : i18n ( 'summary.paths' ) ,
167+ value : PathDescription ?. DomainDescription ?. PathsInside ,
168+ } ,
169+ {
170+ label : i18n ( 'summary.shards' ) ,
171+ value : PathDescription ?. DomainDescription ?. ShardsInside ,
172+ } ,
173+ ] ;
174+
164175 const getPathTypeOverview : Record < EPathType , ( ( ) => InfoViewerItem [ ] ) | undefined > = {
165176 [ EPathType . EPathTypeInvalid ] : undefined ,
166177 [ EPathType . EPathTypeDir ] : undefined ,
@@ -170,18 +181,9 @@ export function ObjectSummary({
170181 value : PathDescription ?. TablePartitions ?. length ,
171182 } ,
172183 ] ,
173- [ EPathType . EPathTypeSubDomain ] : undefined ,
184+ [ EPathType . EPathTypeSubDomain ] : getDatabaseOverview ,
174185 [ EPathType . EPathTypeTableIndex ] : undefined ,
175- [ EPathType . EPathTypeExtSubDomain ] : ( ) => [
176- {
177- label : i18n ( 'summary.paths' ) ,
178- value : PathDescription ?. DomainDescription ?. PathsInside ,
179- } ,
180- {
181- label : i18n ( 'summary.shards' ) ,
182- value : PathDescription ?. DomainDescription ?. ShardsInside ,
183- } ,
184- ] ,
186+ [ EPathType . EPathTypeExtSubDomain ] : getDatabaseOverview ,
185187 [ EPathType . EPathTypeColumnStore ] : ( ) => [
186188 {
187189 label : i18n ( 'summary.partitions' ) ,
0 commit comments