use harvester translation key forhost page CPU and memory (#220)

Signed-off-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
Andy Lee 2025-03-27 13:24:55 +08:00 committed by GitHub
parent 18667836c2
commit 38cf667830
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -101,14 +101,14 @@ export default {
const metricCol = [ const metricCol = [
{ {
name: 'cpu', name: 'cpu',
labelKey: 'node.detail.glance.consumptionGauge.cpu', labelKey: 'harvester.dashboard.hardwareResourceGauge.cpu',
value: 'id', value: 'id',
formatter: 'HarvesterCPUUsed', formatter: 'HarvesterCPUUsed',
formatterOpts: { showUsed: true }, formatterOpts: { showUsed: true },
}, },
{ {
name: 'memory', name: 'memory',
labelKey: 'node.detail.glance.consumptionGauge.memory', labelKey: 'harvester.dashboard.hardwareResourceGauge.memory',
value: 'id', value: 'id',
formatter: 'HarvesterMemoryUsed', formatter: 'HarvesterMemoryUsed',
formatterOpts: { showUsed: true }, formatterOpts: { showUsed: true },