feat(xo-web/home/VMs): display pool's name (#3709)

Fixes #2226
This commit is contained in:
Rajaa.BARHTAOUI 2018-11-20 15:59:37 +01:00 committed by Pierre Donias
parent 9a8f84ccb5
commit 88ca41231f
2 changed files with 4 additions and 2 deletions

View File

@ -5,6 +5,7 @@
### Enhancements
- [Perf alert] Ability to trigger an alarm if a host/VM/SR usage value is below the threshold [#3612](https://github.com/vatesfr/xen-orchestra/issues/3612) (PR [#3675](https://github.com/vatesfr/xen-orchestra/pull/3675))
- [Home/VMs] Display pool's name [#2226](https://github.com/vatesfr/xen-orchestra/issues/2226) (PR [#3709](https://github.com/vatesfr/xen-orchestra/pull/3709))
### Bug fixes

View File

@ -4,6 +4,7 @@ import Ellipsis, { EllipsisContainer } from 'ellipsis'
import Icon from 'icon'
import Link, { BlockLink } from 'link'
import React from 'react'
import renderXoItem from 'render-xo-item'
import SingleLineRow from 'single-line-row'
import HomeTags from 'home-tags'
import Tooltip from 'tooltip'
@ -181,13 +182,13 @@ export default class VmItem extends Component {
xoType='host'
>
<Link to={`/${container.type}s/${container.id}`}>
{container.name_label}
{renderXoItem(container)}
</Link>
</XoSelect>
) : (
container && (
<Link to={`/${container.type}s/${container.id}`}>
{container.name_label}
{renderXoItem(container)}
</Link>
)
)}