@@ -161,6 +161,17 @@ export function ObjectSummary({
161
161
162
162
const title = < EntityTitle data = { PathDescription } /> ;
163
163
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
+
164
175
const getPathTypeOverview : Record < EPathType , ( ( ) => InfoViewerItem [ ] ) | undefined > = {
165
176
[ EPathType . EPathTypeInvalid ] : undefined ,
166
177
[ EPathType . EPathTypeDir ] : undefined ,
@@ -170,18 +181,9 @@ export function ObjectSummary({
170
181
value : PathDescription ?. TablePartitions ?. length ,
171
182
} ,
172
183
] ,
173
- [ EPathType . EPathTypeSubDomain ] : undefined ,
184
+ [ EPathType . EPathTypeSubDomain ] : getDatabaseOverview ,
174
185
[ 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 ,
185
187
[ EPathType . EPathTypeColumnStore ] : ( ) => [
186
188
{
187
189
label : i18n ( 'summary.partitions' ) ,
0 commit comments