feat(srs/advanced): total VDIs to coalesce (#2309)

Fixes #2300
This commit is contained in:
Pierre Donias
2017-08-16 18:08:46 +02:00
committed by Olivier Lambert
parent fc8c37d66c
commit 4b49da7d8f
2 changed files with 3 additions and 3 deletions

View File

@@ -456,7 +456,7 @@ var messages = {
srUnhealthyVdiNameLabel: 'Name',
srUnhealthyVdiSize: 'Size',
srUnhealthyVdiDepth: 'Depth',
srUnhealthyVdiTitle: 'VDI to coalesce',
srUnhealthyVdiTitle: 'VDI to coalesce ({total, number})',
// ----- SR actions -----
srRescan: 'Rescan all disks',

View File

@@ -8,7 +8,7 @@ import { Container, Row, Col } from 'grid'
import { createGetObjectsOfType } from 'selectors'
import { createSelector } from 'reselect'
import { createSrUnhealthyVdiChainsLengthSubscription, deleteSr } from 'xo'
import { flowRight, isEmpty, keys } from 'lodash'
import { flowRight, isEmpty, keys, sum, values } from 'lodash'
// ===================================================================
@@ -45,7 +45,7 @@ const UnhealthyVdiChains = flowRight(
)(({ chains, vdis }) => isEmpty(vdis)
? null
: <div>
<h3>{_('srUnhealthyVdiTitle')}</h3>
<h3>{_('srUnhealthyVdiTitle', { total: sum(values(chains)) })}</h3>
<SortedTable
collection={vdis}
columns={COLUMNS}