fix(xo-web/backup-ng): fix compression (#3809)
This commit is contained in:
parent
17014c2819
commit
d4215eb452
@ -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'),
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user