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/sr/disks): duplicate CBT state to storage view #7888

Merged
merged 8 commits into from
Aug 14, 2024
3 changes: 2 additions & 1 deletion CHANGELOG.unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
> Users must be able to say: “Nice enhancement, I'm eager to test it”

- [REST API] Add backup repository and storage repository information in the `/rest/v0/dashboard` endpoint (PR [#7882](https://github.com/vatesfr/xen-orchestra/pull/7882), [#7904](https://github.com/vatesfr/xen-orchestra/pull/7904))
- [SR/Disks] Show and edit the use of CBT (Change Block Tracking) [#7786](https://github.com/vatesfr/xen-orchestra/issues/7786) (PR [#7888](https://github.com/vatesfr/xen-orchestra/pull/7888))

### Bug fixes

Expand All @@ -38,6 +39,6 @@

- @xen-orchestra/proxy patch
- xo-server minor
- xo-web patch
- xo-web minor

<!--packages-end-->
6 changes: 6 additions & 0 deletions packages/xo-web/src/xo-app/sr/tab-disks.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import {
isSrIso,
isSrShared,
migrateVdi,
setCbt,
} from 'xo'
import { error } from 'notification'

Expand Down Expand Up @@ -96,6 +97,11 @@ const COLUMNS = [
itemRenderer: vdi => formatSize(vdi.size),
sortCriteria: vdi => vdi.size,
},
{
name: _('vbdCbt'),
itemRenderer: vdi => <Toggle value={vdi.cbt_enabled} onChange={cbt => setCbt(vdi, cbt)} />,
sortCriteria: vdi => vdi.cbt_enabled,
},
{
name: _('vdiVms'),
component: connectStore(() => {
Expand Down
Loading