From 6ca2d550fa300db8115bc408c69fbf2971acf5d2 Mon Sep 17 00:00:00 2001 From: Francesco Torchia Date: Wed, 7 Aug 2024 11:31:11 +0200 Subject: [PATCH] Fix lint and messages Signed-off-by: Francesco Torchia --- .../dialog/HarvesterMaintenanceDialog.vue | 15 +++++++++------ pkg/harvester/l10n/en-us.yaml | 2 +- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/pkg/harvester/dialog/HarvesterMaintenanceDialog.vue b/pkg/harvester/dialog/HarvesterMaintenanceDialog.vue index 0f27a05468d..deb64056189 100644 --- a/pkg/harvester/dialog/HarvesterMaintenanceDialog.vue +++ b/pkg/harvester/dialog/HarvesterMaintenanceDialog.vue @@ -6,6 +6,7 @@ import { Banner } from '@components/Banner'; import { Checkbox } from '@components/Form/Checkbox'; import { exceptionToErrorsArray } from '@shell/utils/error'; import { BadgeState } from '@components/BadgeState'; +import { ucFirst } from '@shell/utils/string'; export default { components: { @@ -40,6 +41,10 @@ export default { }, methods: { + errorLabel(err) { + return ucFirst(err); + }, + close() { this.$emit('close'); }, @@ -99,14 +104,12 @@ export default { - - - - - + + + -
+

{{ unhealthyVM.message }} diff --git a/pkg/harvester/l10n/en-us.yaml b/pkg/harvester/l10n/en-us.yaml index f9bd5380411..5bc93214246 100644 --- a/pkg/harvester/l10n/en-us.yaml +++ b/pkg/harvester/l10n/en-us.yaml @@ -352,7 +352,7 @@ harvester: enableMaintenance: title: Enable Maintenance Mode protip: The operation will migrate all virtual machines on this node to other nodes. - shoutDownVMs: You can click Force to automatically shutdown non-migratable VMs and continue with enabling Maintenance Mode + shutDownVMs: Check Force option to shutdown VMs which cannot be migrated in live mode. force: Force cordon: title: Cordon