feat(xo-web/backup-ng/overview): show advanced settings with non-default values (#3554)

Fixes #3549
This commit is contained in:
Enishowk 2018-10-18 08:46:15 +00:00 committed by Julien Fontanet
parent b67231c56b
commit e0a3b8ace8
2 changed files with 7 additions and 1 deletions

View File

@ -16,6 +16,7 @@
- [Home] Improve search usage: raw numbers also match in names [#2906](https://github.com/vatesfr/xen-orchestra/issues/2906) (PR [#3552](https://github.com/vatesfr/xen-orchestra/pull/3552))
- [Backup NG] Timeout of a job is now in hours [#3550](https://github.com/vatesfr/xen-orchestra/issues/3550) (PR [#3553](https://github.com/vatesfr/xen-orchestra/pull/3553))
- [Backup NG] Explicit error if a VM is missing [#3434](https://github.com/vatesfr/xen-orchestra/issues/3434) (PR [#3522](https://github.com/vatesfr/xen-orchestra/pull/3522))
- [Backup NG] Show all advanced settings with non-default values in overview [#3549](https://github.com/vatesfr/xen-orchestra/issues/3549) (PR [#3554](https://github.com/vatesfr/xen-orchestra/pull/3554))
### Bug fixes

View File

@ -190,13 +190,18 @@ class JobsTable extends React.Component {
},
{
itemRenderer: job => {
const { concurrency, offlineSnapshot } = job.settings[''] || {}
const { concurrency, offlineSnapshot, reportWhen, timeout } =
job.settings[''] || {}
return (
<Ul>
{reportWhen && <Li>{_.keyValue(_('reportWhen'), reportWhen)}</Li>}
{concurrency > 0 && (
<Li>{_.keyValue(_('concurrency'), concurrency)}</Li>
)}
{timeout > 0 && (
<Li>{_.keyValue(_('timeout'), timeout / 1e3)} hours</Li>
)}
{offlineSnapshot && (
<Li>
{_.keyValue(