fix: cpu/ memory columns in host detail VM tab (#436) (#437)

(cherry picked from commit 93c8399935a535d17d1fceb036d27f3b17eb83fa)

Signed-off-by: Andy Lee <andy.lee@suse.com>
Co-authored-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
mergify[bot] 2025-07-30 11:57:52 +08:00 committed by GitHub
parent 41f78c83a7
commit df1d7001bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -47,20 +47,26 @@ export default {
STATE,
NAME,
{
name: 'vmCPU',
labelKey: 'tableHeaders.cpu',
search: false,
sort: ['spec.template.spec.domain.cpu.cores'],
value: 'spec.template.spec.domain.cpu.cores',
width: 120
name: 'CPU',
label: 'CPU',
sort: ['displayCPU'],
value: 'displayCPU',
align: 'center',
dashIfEmpty: true,
},
{
name: 'vmRAM',
labelKey: 'glance.memory',
search: false,
name: 'Memory',
value: 'displayMemory',
sort: ['memorySort'],
value: 'spec.template.spec.domain.resources.limits.memory',
width: 120
align: 'center',
labelKey: 'tableHeaders.memory',
formatter: 'Si',
formatterOpts: {
opts: {
increment: 1024, addSuffix: true, maxExponent: 3, minExponent: 3, suffix: 'i',
},
needParseSi: true
},
},
{
name: 'ip',