feat: support adding VM display name in creation page (#912)

* feat: add VM display name annotation support in edit and list views

Signed-off-by: Andy Lee <andy.lee@suse.com>

* refactor: add display name checkbox and input field

Signed-off-by: Andy Lee <andy.lee@suse.com>

---------

Signed-off-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
Andy Lee
2026-06-05 12:11:07 +08:00
committed by GitHub
parent ae65037083
commit ce2adbdc3b
5 changed files with 65 additions and 8 deletions
@@ -22,6 +22,8 @@ export const VM_HEADERS = [
{
...NAME,
width: 350,
value: 'nameDisplay',
sort: ['nameDisplay'],
},
NAMESPACE,
{
@@ -244,7 +246,7 @@ export default {
v-if="scope.row.type !== HCI.VMI"
:to="scope.row.detailLocation"
>
{{ scope.row.metadata.name }}
{{ scope.row.nameDisplay }}
<i
v-if="scope.row.encryptedVolumeType !== 'none'"
v-tooltip="lockIconTooltipMessage(scope.row)"
@@ -253,7 +255,7 @@ export default {
/>
</router-link>
<span v-else>
{{ scope.row.metadata.name }}
{{ scope.row.nameDisplay }}
</span>
<ConsoleBar
:resource-type="scope.row"