fix(xo-web/backup-ng): handle compression default value (#3796)
Missing fromc5a21922d
ande0a3b8ace
.
This commit is contained in:
parent
eac9ce597b
commit
6b30465ef2
@ -219,8 +219,13 @@ class JobsTable extends React.Component {
|
||||
},
|
||||
{
|
||||
itemRenderer: job => {
|
||||
const { concurrency, offlineSnapshot, reportWhen, timeout } =
|
||||
job.settings[''] || {}
|
||||
const {
|
||||
compression,
|
||||
concurrency,
|
||||
offlineSnapshot,
|
||||
reportWhen,
|
||||
timeout,
|
||||
} = job.settings[''] || {}
|
||||
|
||||
return (
|
||||
<Ul>
|
||||
@ -239,6 +244,14 @@ class JobsTable extends React.Component {
|
||||
)}
|
||||
</Li>
|
||||
)}
|
||||
{compression === 'native' && (
|
||||
<Li>
|
||||
{_.keyValue(
|
||||
_('useCompression'),
|
||||
<span className='text-success'>{_('stateEnabled')}</span>
|
||||
)}
|
||||
</Li>
|
||||
)}
|
||||
</Ul>
|
||||
)
|
||||
},
|
||||
|
@ -625,13 +625,15 @@ export default decorate([
|
||||
const { propSettings, settings = propSettings } = state
|
||||
const { concurrency, reportWhen = 'failure', offlineSnapshot, timeout } =
|
||||
settings.get('') || {}
|
||||
const { compression = job.compression === 'native' } = state
|
||||
const displayAdvancedSettings = defined(
|
||||
state.displayAdvancedSettings,
|
||||
concurrency > 0 || timeout > 0 || offlineSnapshot
|
||||
compression === 'native' ||
|
||||
concurrency > 0 ||
|
||||
timeout > 0 ||
|
||||
offlineSnapshot
|
||||
)
|
||||
|
||||
const { compression = job.compression === 'native' } = state
|
||||
|
||||
if (state.needUpdateParams) {
|
||||
effects.updateParams()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user