From 89b43060df873aa0753de69574f20aaea4608bf9 Mon Sep 17 00:00:00 2001 From: Yi-Ya Chen Date: Mon, 20 Jan 2025 10:42:43 +0800 Subject: [PATCH] feat: handle bulk actions Signed-off-by: Yi-Ya Chen (cherry picked from commit f2d517222433dde29b1e0742f3b4a27523410831) --- pkg/harvester/l10n/en-us.yaml | 1 - pkg/harvester/models/kubevirt.io.virtualmachine.js | 13 +++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pkg/harvester/l10n/en-us.yaml b/pkg/harvester/l10n/en-us.yaml index 22663d98..cf9d09f9 100644 --- a/pkg/harvester/l10n/en-us.yaml +++ b/pkg/harvester/l10n/en-us.yaml @@ -47,7 +47,6 @@ dialog: =1 { and one other } other { and {count} other } } - confirmName: "Enter {nameToMatch} below to confirm:" protip: "Tip: Hold the {alternateLabel} key while clicking action to bypass this confirmation" stop: message: "Are you sure you want to continue stop the {type} {names}?" diff --git a/pkg/harvester/models/kubevirt.io.virtualmachine.js b/pkg/harvester/models/kubevirt.io.virtualmachine.js index 9a1aef89..24b201d6 100644 --- a/pkg/harvester/models/kubevirt.io.virtualmachine.js +++ b/pkg/harvester/models/kubevirt.io.virtualmachine.js @@ -102,12 +102,13 @@ export default class VirtVm extends HarvesterResource { return [ { - action: 'stopVM', - altAction: 'altStopVM', - enabled: !!this.actions?.stop, - icon: 'icon icon-close', - label: this.t('harvester.action.stop'), - bulkable: true + action: 'stopVM', + altAction: 'altStopVM', + enabled: !!this.actions?.stop, + icon: 'icon icon-close', + label: this.t('harvester.action.stop'), + bulkable: true, + bulkAction: 'stopVM', }, { action: 'forceStop',