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

View File

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

View File

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