Skip to content

Commit 4a7ebc0

Browse files
fix(StorageGroups): display Erasure
1 parent a0ac4f6 commit 4a7ebc0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/containers/Storage/StorageGroups/StorageGroups.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import './StorageGroups.scss';
2828
enum TableColumnsIds {
2929
PoolName = 'PoolName',
3030
Type = 'Type',
31+
ErasureSpecies = 'ErasureSpecies',
3132
GroupID = 'GroupID',
3233
Used = 'Used',
3334
Limit = 'Limit',
@@ -53,6 +54,7 @@ interface StorageGroupsProps {
5354
const tableColumnsNames: Record<TableColumnsIdsValues, string> = {
5455
PoolName: 'Pool Name',
5556
Type: 'Type',
57+
ErasureSpecies: 'Erasure',
5658
GroupID: 'Group ID',
5759
Used: 'Used',
5860
Limit: 'Limit',
@@ -146,6 +148,12 @@ function StorageGroups({
146148
</>
147149
),
148150
},
151+
{
152+
name: TableColumnsIds.ErasureSpecies,
153+
header: tableColumnsNames[TableColumnsIds.ErasureSpecies],
154+
render: ({row}) => (row.ErasureSpecies ? row.ErasureSpecies : '-'),
155+
align: DataTable.LEFT,
156+
},
149157
{
150158
name: TableColumnsIds.Missing,
151159
header: tableColumnsNames[TableColumnsIds.Missing],

0 commit comments

Comments
 (0)