diff --git a/CHANGELOG.unreleased.md b/CHANGELOG.unreleased.md index 3dd22b401..261055fd8 100644 --- a/CHANGELOG.unreleased.md +++ b/CHANGELOG.unreleased.md @@ -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 diff --git a/packages/xo-web/src/common/intl/messages.js b/packages/xo-web/src/common/intl/messages.js index ff2096891..99c0a26de 100644 --- a/packages/xo-web/src/common/intl/messages.js +++ b/packages/xo-web/src/common/intl/messages.js @@ -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', diff --git a/packages/xo-web/src/xo-app/dashboard/health/unhealthyVdis.js b/packages/xo-web/src/xo-app/dashboard/health/unhealthyVdis.js index 5bff2acc9..357e04782 100644 --- a/packages/xo-web/src/xo-app/dashboard/health/unhealthyVdis.js +++ b/packages/xo-web/src/xo-app/dashboard/health/unhealthyVdis.js @@ -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 }) => (
{' '} - {size(vdisHealthBySr[srId].unhealthyVdis) >= VDIS_TO_COALESCE_LIMIT && ( - + {vdisHealthBySr[srId].nUnhealthyVdis >= VDIS_TO_COALESCE_LIMIT && ( +