feat(xo-web/SR/advanced): add VDI UUID in coalesce table (#2919)
Fixes #2903
This commit is contained in:
parent
6780146505
commit
9c05a59b5f
@ -540,10 +540,11 @@ const messages = {
|
|||||||
|
|
||||||
// ----- SR advanced tab -----
|
// ----- SR advanced tab -----
|
||||||
|
|
||||||
|
srUnhealthyVdiDepth: 'Depth',
|
||||||
srUnhealthyVdiNameLabel: 'Name',
|
srUnhealthyVdiNameLabel: 'Name',
|
||||||
srUnhealthyVdiSize: 'Size',
|
srUnhealthyVdiSize: 'Size',
|
||||||
srUnhealthyVdiDepth: 'Depth',
|
|
||||||
srUnhealthyVdiTitle: 'VDI to coalesce ({total, number})',
|
srUnhealthyVdiTitle: 'VDI to coalesce ({total, number})',
|
||||||
|
srUnhealthyVdiUuid: 'UUID',
|
||||||
|
|
||||||
// ----- SR stats tab -----
|
// ----- SR stats tab -----
|
||||||
|
|
||||||
|
@ -14,20 +14,25 @@ import { flowRight, isEmpty, keys, sum, values } from 'lodash'
|
|||||||
|
|
||||||
const COLUMNS = [
|
const COLUMNS = [
|
||||||
{
|
{
|
||||||
|
itemRenderer: _ => <span>{_.name_label}</span>,
|
||||||
name: _('srUnhealthyVdiNameLabel'),
|
name: _('srUnhealthyVdiNameLabel'),
|
||||||
itemRenderer: vdi => <span>{vdi.name_label}</span>,
|
sortCriteria: 'name_label',
|
||||||
sortCriteria: vdi => vdi.name_label,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: _('srUnhealthyVdiSize'),
|
|
||||||
itemRenderer: vdi => formatSize(vdi.size),
|
itemRenderer: vdi => formatSize(vdi.size),
|
||||||
sortCriteria: vdi => vdi.size,
|
name: _('srUnhealthyVdiSize'),
|
||||||
|
sortCriteria: 'size',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: _('srUnhealthyVdiDepth'),
|
|
||||||
itemRenderer: (vdi, chains) => chains[vdi.uuid],
|
itemRenderer: (vdi, chains) => chains[vdi.uuid],
|
||||||
|
name: _('srUnhealthyVdiDepth'),
|
||||||
sortCriteria: (vdi, chains) => chains[vdi.uuid],
|
sortCriteria: (vdi, chains) => chains[vdi.uuid],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
itemRenderer: _ => <Copiable tagName='div'>{_.uuid}</Copiable>,
|
||||||
|
name: _('srUnhealthyVdiUuid'),
|
||||||
|
sortCriteria: 'uuid',
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
const UnhealthyVdiChains = flowRight(
|
const UnhealthyVdiChains = flowRight(
|
||||||
|
Loading…
Reference in New Issue
Block a user