feat(xo-web/dashboard/health): VDIs to coalesce warning contains the number (#7111)
Fixes Zammad#17577
This commit is contained in:
parent
1a0e5eb6fc
commit
1fac7922b4
@ -12,6 +12,7 @@
|
||||
- [PIF] Show network name in PIF selectors (PR [#7081](https://github.com/vatesfr/xen-orchestra/pull/7081))
|
||||
- [VM/Advanced] Possibility to create/delete VTPM [#7066](https://github.com/vatesfr/xen-orchestra/issues/7066) [Forum#6578](https://xcp-ng.org/forum/topic/6578/xcp-ng-8-3-public-alpha/109) (PR [#7085](https://github.com/vatesfr/xen-orchestra/pull/7085))
|
||||
- [VM/New] Possibility to create and attach a _VTPM_ to a VM [#7066](https://github.com/vatesfr/xen-orchestra/issues/7066) [Forum#6578](https://xcp-ng.org/forum/topic/6578/xcp-ng-8-3-public-alpha/109) (PR [#7077](https://github.com/vatesfr/xen-orchestra/pull/7077))
|
||||
- [Dashboard/Health] Displays number of VDIs to coalesce (PR [#7111](https://github.com/vatesfr/xen-orchestra/pull/7111))
|
||||
|
||||
### Bug fixes
|
||||
|
||||
|
@ -1576,7 +1576,7 @@ const messages = {
|
||||
unhealthyVdis: 'Unhealthy VDIs',
|
||||
vdisToCoalesce: 'VDIs to coalesce',
|
||||
vdisWithInvalidVhdParent: 'VDIs with invalid parent VHD',
|
||||
srVdisToCoalesceWarning: 'This SR has more than {limitVdis, number} VDIs to coalesce',
|
||||
srVdisToCoalesceWarning: 'This SR has {nVdis, number} VDI{nVdis, plural, one {} other {s}} to coalesce',
|
||||
|
||||
// ----- New VM -----
|
||||
createVmModalTitle: 'Create VM',
|
||||
|
@ -11,7 +11,7 @@ import { connectStore } from 'utils'
|
||||
import { Col, Row } from 'grid'
|
||||
import { createGetObjectsOfType } from 'selectors'
|
||||
import { injectState, provideState } from 'reaclette'
|
||||
import { forEach, isEmpty, map, size } from 'lodash'
|
||||
import { forEach, isEmpty, map } from 'lodash'
|
||||
import { Sr, Vdi } from 'render-xo-item'
|
||||
import { subscribeSrsUnhealthyVdiChainsLength, VDIS_TO_COALESCE_LIMIT } from 'xo'
|
||||
|
||||
@ -20,8 +20,8 @@ const COLUMNS = [
|
||||
itemRenderer: (srId, { vdisHealthBySr }) => (
|
||||
<div>
|
||||
<Sr id={srId} link />{' '}
|
||||
{size(vdisHealthBySr[srId].unhealthyVdis) >= VDIS_TO_COALESCE_LIMIT && (
|
||||
<Tooltip content={_('srVdisToCoalesceWarning', { limitVdis: VDIS_TO_COALESCE_LIMIT })}>
|
||||
{vdisHealthBySr[srId].nUnhealthyVdis >= VDIS_TO_COALESCE_LIMIT && (
|
||||
<Tooltip content={_('srVdisToCoalesceWarning', { nVdis: vdisHealthBySr[srId].nUnhealthyVdis })}>
|
||||
<span className='text-warning'>
|
||||
<Icon icon='alarm' />
|
||||
</span>
|
||||
|
Loading…
Reference in New Issue
Block a user