fix(xo-web/backup-ng/new): always show compression when full mode (#3345)

Fixes #3236
This commit is contained in:
badrAZ 2018-08-21 10:12:36 +02:00 committed by Julien Fontanet
parent 627c06f4a8
commit d15efae43f
2 changed files with 2 additions and 4 deletions

View File

@ -13,6 +13,7 @@
- [Backup reports] Send report for the interrupted backup jobs on the server startup [#2998](https://github.com/vatesfr/xen-orchestra/issues/#2998) (PR [3164](https://github.com/vatesfr/xen-orchestra/pull/3164) [3154](https://github.com/vatesfr/xen-orchestra/pull/3154)) - [Backup reports] Send report for the interrupted backup jobs on the server startup [#2998](https://github.com/vatesfr/xen-orchestra/issues/#2998) (PR [3164](https://github.com/vatesfr/xen-orchestra/pull/3164) [3154](https://github.com/vatesfr/xen-orchestra/pull/3154))
- [Backup NG form] Move VMs' selection to a dedicated card [#2711](https://github.com/vatesfr/xen-orchestra/issues/2711) (PR [#3338](https://github.com/vatesfr/xen-orchestra/pull/3338)) - [Backup NG form] Move VMs' selection to a dedicated card [#2711](https://github.com/vatesfr/xen-orchestra/issues/2711) (PR [#3338](https://github.com/vatesfr/xen-orchestra/pull/3338))
- [Backup NG smart mode] Exclude replicated VMs [#2338](https://github.com/vatesfr/xen-orchestra/issues/2338) (PR [#3312](https://github.com/vatesfr/xen-orchestra/pull/3312)) - [Backup NG smart mode] Exclude replicated VMs [#2338](https://github.com/vatesfr/xen-orchestra/issues/2338) (PR [#3312](https://github.com/vatesfr/xen-orchestra/pull/3312))
- [Backup NG form] Show the compression checkbox when the full mode is active [#3236](https://github.com/vatesfr/xen-orchestra/issues/3236) (PR [#3345](https://github.com/vatesfr/xen-orchestra/pull/3345))
### Bug fixes ### Bug fixes

View File

@ -545,9 +545,6 @@ export default [
state.copyMode && !state.copyRetentionExists, state.copyMode && !state.copyRetentionExists,
missingSnapshotRetention: state => missingSnapshotRetention: state =>
state.snapshotMode && !state.snapshotRetentionExists, state.snapshotMode && !state.snapshotRetentionExists,
showCompression: state =>
state.isFull &&
(state.exportRetentionExists || state.copyRetentionExists),
exportMode: state => state.backupMode || state.deltaMode, exportMode: state => state.backupMode || state.deltaMode,
copyMode: state => state.drMode || state.crMode, copyMode: state => state.drMode || state.crMode,
exportRetentionExists: createDoesRetentionExist('exportRetention'), exportRetentionExists: createDoesRetentionExist('exportRetention'),
@ -851,7 +848,7 @@ export default [
/> />
</label> </label>
</FormGroup> </FormGroup>
{state.showCompression && ( {state.isFull && (
<FormGroup> <FormGroup>
<label> <label>
<strong>{_('useCompression')}</strong>{' '} <strong>{_('useCompression')}</strong>{' '}