Skip to content

Commit cb21ce3

Browse files
committed
fix(Cluster): should show additional info
1 parent d06cd6a commit cb21ce3

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/components/ClusterInfo/ClusterInfo.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import {Link, Loader} from '@yandex-cloud/uikit';
3131
//@ts-ignore
3232
import Icon from '../Icon/Icon';
3333
import {setHeader} from '../../store/reducers/header';
34-
import routes, { CLUSTER_PAGES, createHref } from '../../routes';
34+
import routes, {CLUSTER_PAGES, createHref} from '../../routes';
3535

3636
const b = cn('cluster-info');
3737

@@ -62,7 +62,7 @@ interface ClusterInfoProps {
6262
setHeader: any;
6363
getClusterInfo: (clusterName: string) => void;
6464
clusterTitle?: string;
65-
additionalInfo?: IClusterInfoItem[];
65+
additionalClusterInfo?: IClusterInfoItem[];
6666
loading: boolean;
6767
singleClusterMode: boolean;
6868
wasLoaded: boolean;
@@ -128,7 +128,11 @@ class ClusterInfo extends React.Component<ClusterInfoProps> {
128128
private autofetcher: any;
129129

130130
private getInfo() {
131-
const {cluster = {} as ICluster, additionalInfo = [], singleClusterMode} = this.props;
131+
const {
132+
cluster = {} as ICluster,
133+
additionalClusterInfo = [],
134+
singleClusterMode,
135+
} = this.props;
132136
const {StorageTotal, StorageUsed} = cluster;
133137

134138
let link = backend + '/internal';
@@ -173,7 +177,7 @@ class ClusterInfo extends React.Component<ClusterInfoProps> {
173177
label: 'Versions',
174178
value: <div>{cluster.Versions?.join(', ')}</div>,
175179
},
176-
...additionalInfo,
180+
...additionalClusterInfo,
177181
{
178182
label: 'Internal viewer',
179183
value: (

src/containers/Cluster/Cluster.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function Cluster(props: ClusterProps) {
3535
return <Storage {...props} />;
3636
}
3737
case CLUSTER_PAGES.cluster.id: {
38-
return <ClusterInfo />;
38+
return <ClusterInfo additionalClusterInfo={props.additionalClusterInfo} />;
3939
}
4040
default: {
4141
return null;

0 commit comments

Comments
 (0)