fix(xo-web/backup-ng): fix compression (#3809)

This commit is contained in:
badrAZ 2018-12-20 09:39:31 +01:00 committed by Pierre Donias
parent 17014c2819
commit d4215eb452
2 changed files with 4 additions and 12 deletions

View File

@ -219,13 +219,8 @@ class JobsTable extends React.Component {
},
{
itemRenderer: job => {
const {
compression,
concurrency,
offlineSnapshot,
reportWhen,
timeout,
} = job.settings[''] || {}
const { concurrency, offlineSnapshot, reportWhen, timeout } =
job.settings[''] || {}
return (
<Ul>
@ -244,7 +239,7 @@ class JobsTable extends React.Component {
)}
</Li>
)}
{compression === 'native' && (
{job.compression === 'native' && (
<Li>
{_.keyValue(
_('useCompression'),

View File

@ -628,10 +628,7 @@ export default decorate([
const { compression = job.compression === 'native' } = state
const displayAdvancedSettings = defined(
state.displayAdvancedSettings,
compression === 'native' ||
concurrency > 0 ||
timeout > 0 ||
offlineSnapshot
compression || concurrency > 0 || timeout > 0 || offlineSnapshot
)
if (state.needUpdateParams) {