From 005d3b59763c8430497c580b34916c6e3670daa9 Mon Sep 17 00:00:00 2001 From: Pierre Donias Date: Wed, 31 Aug 2022 10:57:26 +0200 Subject: [PATCH] feat(lite): placeholders for pool/host/VM name_label (#6391) Some objects may have an empty `name_label`. This is to avoid confusion in the tree view. --- @xen-orchestra/lite/src/components/infra/InfraHostItem.vue | 2 +- @xen-orchestra/lite/src/components/infra/InfraPoolList.vue | 2 +- @xen-orchestra/lite/src/components/infra/InfraVmItem.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/@xen-orchestra/lite/src/components/infra/InfraHostItem.vue b/@xen-orchestra/lite/src/components/infra/InfraHostItem.vue index 9e7bda73b..e7011c226 100644 --- a/@xen-orchestra/lite/src/components/infra/InfraHostItem.vue +++ b/@xen-orchestra/lite/src/components/infra/InfraHostItem.vue @@ -5,7 +5,7 @@ :icon="faServer" :route="{ name: 'host.dashboard', params: { uuid: host.uuid } }" > - {{ host.name_label }} + {{ host.name_label || '(Host)' }}