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.
This commit is contained in:
Pierre Donias 2022-08-31 10:57:26 +02:00 committed by Julien Fontanet
parent 663403cb14
commit 005d3b5976
3 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@
:icon="faServer"
:route="{ name: 'host.dashboard', params: { uuid: host.uuid } }"
>
{{ host.name_label }}
{{ host.name_label || '(Host)' }}
<template #actions>
<InfraAction
:icon="isExpanded ? faAngleDown : faAngleUp"

View File

@ -7,7 +7,7 @@
:route="{ name: 'pool.dashboard', params: { uuid: pool.uuid } }"
current
>
{{ pool.name_label }}
{{ pool.name_label || '(Pool)' }}
</InfraItemLabel>
<InfraHostList />

View File

@ -5,7 +5,7 @@
:icon="faDisplay"
:route="{ name: 'vm.console', params: { uuid: vm.uuid } }"
>
{{ vm.name_label }}
{{ vm.name_label || '(VM)' }}
<template #actions>
<InfraAction>
<PowerStateIcon :state="vm?.power_state" />