Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(xo-web/dashboard/health): add free space column for storage state #6778

Merged
merged 3 commits into from
Apr 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
> Users must be able to say: “Nice enhancement, I'm eager to test it”

- [VM/Advanced] Automatically eject removable medias when converting a VM to a template [#6752](https://github.com/vatesfr/xen-orchestra/issues/6752) (PR [#6769](https://github.com/vatesfr/xen-orchestra/pull/6769))
- [Dashboard/Health] Add free space column for storage state table (PR [#6778](https://github.com/vatesfr/xen-orchestra/pull/6778))

### Bug fixes

Expand Down Expand Up @@ -40,8 +41,8 @@
- @xen-orchestra/backups minor
- @xen-orchestra/mixins minor
- vhd-lib minor
- xo-web patch
- xo-server minor
- xo-server-usage-report patch
- xo-web minor

<!--packages-end-->
5 changes: 5 additions & 0 deletions packages/xo-web/src/xo-app/dashboard/health/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ const SR_COLUMNS = [
itemRenderer: sr => sr.SR_type,
sortCriteria: sr => sr.SR_type,
},
{
name: <span className='text-capitalize'>{_('srFree')}</span>,
itemRenderer: sr => formatSize(sr.size - sr.physical_usage),
sortCriteria: sr => sr.size - sr.physical_usage,
},
{
name: _('srSize'),
itemRenderer: sr => formatSize(sr.size),
Expand Down