fix(xo-web/backup): cleanup settings correctly when deselecting health check (#6515)

Fix #6501
This commit is contained in:
Florent BEAUCHAMP 2022-11-08 10:06:04 +01:00 committed by GitHub
parent 12e98bfd31
commit 9e87a887cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,7 @@
- [Pool] Add tooltip on "no XCP-ng Pro support" warning icon (PR [#6505](https://github.com/vatesfr/xen-orchestra/pull/6505)) - [Pool] Add tooltip on "no XCP-ng Pro support" warning icon (PR [#6505](https://github.com/vatesfr/xen-orchestra/pull/6505))
- [Backup] Respect HTTP proxy setting when connecting to XCP-ng/XenServer pools - [Backup] Respect HTTP proxy setting when connecting to XCP-ng/XenServer pools
- [Dashboard/Health] Fix `an error has occurred` in case of unknown default SR (PR [#6508](https://github.com/vatesfr/xen-orchestra/pull/6508)) - [Dashboard/Health] Fix `an error has occurred` in case of unknown default SR (PR [#6508](https://github.com/vatesfr/xen-orchestra/pull/6508))
- [Backup] Really disable Healthcheck when unchecking settings [#6501](https://github.com/vatesfr/xen-orchestra/issues/6501) (PR [#6515](https://github.com/vatesfr/xen-orchestra/pull/6515))
### Packages to release ### Packages to release

View File

@ -80,6 +80,7 @@ const New = decorate([
toggleHealthCheck({ setSchedule }, { target: { checked } }) { toggleHealthCheck({ setSchedule }, { target: { checked } }) {
setSchedule({ setSchedule({
healthCheckVmsWithTags: checked ? [] : undefined, healthCheckVmsWithTags: checked ? [] : undefined,
healthCheckSr: checked ? this.state.healthCheckSr : undefined,
}) })
}, },
setHealthCheckSr({ setSchedule }, sr) { setHealthCheckSr({ setSchedule }, sr) {