Skip to content

Commit 21c1e4c

Browse files
committed
fix: design fixes
1 parent 2256288 commit 21c1e4c

File tree

5 files changed

+7
-17
lines changed

5 files changed

+7
-17
lines changed

src/components/StorageGroupInfo/StorageGroupInfo.tsx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ interface StorageGroupInfoProps extends Omit<InfoViewerProps, 'info'> {
2222
// eslint-disable-next-line complexity
2323
export function StorageGroupInfo({data, className, ...infoViewerProps}: StorageGroupInfoProps) {
2424
const {
25-
GroupId,
26-
PoolName,
2725
Encryption,
2826
Overall,
2927
DiskSpace,
@@ -47,24 +45,12 @@ export function StorageGroupInfo({data, className, ...infoViewerProps}: StorageG
4745

4846
const storageGroupInfoFirstColumn = [];
4947

50-
if (valueIsDefined(GroupId)) {
51-
storageGroupInfoFirstColumn.push({
52-
label: storageGroupInfoKeyset('group-id'),
53-
value: GroupId,
54-
});
55-
}
5648
if (valueIsDefined(GroupGeneration)) {
5749
storageGroupInfoFirstColumn.push({
5850
label: storageGroupInfoKeyset('group-generation'),
5951
value: GroupGeneration,
6052
});
6153
}
62-
if (valueIsDefined(PoolName)) {
63-
storageGroupInfoFirstColumn.push({
64-
label: storageGroupInfoKeyset('pool-name'),
65-
value: PoolName,
66-
});
67-
}
6854
if (valueIsDefined(ErasureSpecies)) {
6955
storageGroupInfoFirstColumn.push({
7056
label: storageGroupInfoKeyset('erasure-species'),

src/components/StorageGroupInfo/i18n/en.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"group-id": "Group ID",
32
"pool-name": "Pool Name",
43
"encryption": "Encryption",
54
"overall": "Overall",

src/containers/StorageGroupPage/StorageGroupPage.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
left: 0;
2121
}
2222

23+
&__info {
24+
margin-top: var(--g-spacing-10);
25+
}
26+
2327
&__controls {
2428
display: flex;
2529
align-items: center;

src/containers/StorageGroupPage/StorageGroupPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export function StorageGroupPage() {
102102
return null;
103103
}
104104

105-
const items = [`${storageGroupPageKeyset('storage-group')}: ${groupId}`];
105+
const items = [`${storageGroupPageKeyset('pool-name')}: ${storageGroupData?.PoolName}`];
106106

107107
return (
108108
<PageMetaWithAutorefresh
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"storage-group": "Storage Group",
33
"group": "Group",
4-
"nodes": "Nodes"
4+
"nodes": "Nodes",
5+
"pool-name": "Pool Name"
56
}

0 commit comments

Comments
 (0)