Skip to content

Commit 4b4f778

Browse files
fix bot comment, title in uiFactory
1 parent 5aff66d commit 4b4f778

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

src/containers/Clusters/Clusters.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
);

src/containers/Clusters/columns.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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}>

src/containers/Clusters/i18n/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
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"

src/uiFactory/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)