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:
parent
663403cb14
commit
005d3b5976
@ -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"
|
||||||
|
@ -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 />
|
||||||
|
@ -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" />
|
||||||
|
Loading…
Reference in New Issue
Block a user