Skip to content

Commit

Permalink
feat: add reserved size on volume page
Browse files Browse the repository at this point in the history
  • Loading branch information
Liang0028 committed Nov 5, 2024
1 parent e3ce34d commit 962c18f
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/app/features/volume/components/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,14 +224,17 @@ export const List = () => {
dataIndex: 'device_path',
},
{
title: 'Allocated/Size',
title: 'Allocated Size',
key: 'allocated',
render: (_, record) => {
return (
<span>
{formatBytes(record.allocated_size_kib ?? 0)}/{formatBytes(record.size_kib ?? 0)}
</span>
);
return <span>{formatBytes(record.allocated_size_kib ?? 0)}</span>;
},
},
{
title: 'Reserved Size',
key: 'reserved',
render: (_, record) => {
return <span>{formatBytes(record.size_kib ?? 0)}</span>;
},
},
{
Expand Down

0 comments on commit 962c18f

Please sign in to comment.