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() {
130130 const renderPageTitle = ( ) => {
131131 return (
132132 < 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 >
134134 < AutoRefreshControl className = { b ( 'autorefresh' ) } />
135135 </ Flex >
136136 ) ;
Original file line number Diff line number Diff line change @@ -395,7 +395,7 @@ function ClustersTableProgressBar({
395395 capacity : number ;
396396 description ?: string ;
397397} ) {
398- const usage = ( value / capacity ) * 100 ;
398+ const usage = capacity ? ( value / capacity ) * 100 : 0 ;
399399
400400 return (
401401 < Flex direction = { 'column' } gap = { 2 } >
Original file line number Diff line number Diff line change 1818 "clusters-count" : " {{count}} clusters" ,
1919 "entities-count" : " {{value}} of {{capacity}}" ,
2020
21- "page_title" : " YDB Enterprise Manager " ,
21+ "page_title" : " Clusters " ,
2222
2323 "edit-cluster" : " Edit Cluster" ,
2424 "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> {
2323 onEditCluster ?: HandleEditCluster ;
2424 onDeleteCluster ?: HandleDeleteCluster ;
2525
26+ clustersPageTitle ?: string ;
27+
2628 getLogsLink ?: GetLogsLink ;
2729 getMonitoringLink ?: GetMonitoringLink ;
2830 getMonitoringClusterLink ?: GetMonitoringClusterLink ;
You can’t perform that action at this time.
0 commit comments