File tree Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ export function Clusters() {
130
130
const renderPageTitle = ( ) => {
131
131
return (
132
132
< Flex justifyContent = "space-between" className = { b ( 'title-wrapper' ) } >
133
- < Text variant = "header-1" > { i18n ( 'page_title' ) } </ Text >
133
+ < Text variant = "header-1" > { uiFactory . clustersPageTitle ?? i18n ( 'page_title' ) } </ Text >
134
134
< AutoRefreshControl className = { b ( 'autorefresh' ) } />
135
135
</ Flex >
136
136
) ;
Original file line number Diff line number Diff line change @@ -395,7 +395,7 @@ function ClustersTableProgressBar({
395
395
capacity : number ;
396
396
description ?: string ;
397
397
} ) {
398
- const usage = ( value / capacity ) * 100 ;
398
+ const usage = capacity ? ( value / capacity ) * 100 : 0 ;
399
399
400
400
return (
401
401
< Flex direction = { 'column' } gap = { 2 } >
Original file line number Diff line number Diff line change 18
18
"clusters-count" : " {{count}} clusters" ,
19
19
"entities-count" : " {{value}} of {{capacity}}" ,
20
20
21
- "page_title" : " YDB Enterprise Manager " ,
21
+ "page_title" : " Clusters " ,
22
22
23
23
"edit-cluster" : " Edit Cluster" ,
24
24
"remove-cluster" : " Remove Cluster"
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ export interface UIFactory<H extends string = CommonIssueType> {
23
23
onEditCluster ?: HandleEditCluster ;
24
24
onDeleteCluster ?: HandleDeleteCluster ;
25
25
26
+ clustersPageTitle ?: string ;
27
+
26
28
getLogsLink ?: GetLogsLink ;
27
29
getMonitoringLink ?: GetMonitoringLink ;
28
30
getMonitoringClusterLink ?: GetMonitoringClusterLink ;
You can’t perform that action at this time.
0 commit comments