feat: handle bulk actions

Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com>
(cherry picked from commit f2d517222433dde29b1e0742f3b4a27523410831)
This commit is contained in:
Yi-Ya Chen 2025-01-20 10:42:43 +08:00 committed by Mergify
parent 7194d52000
commit 89b43060df
2 changed files with 7 additions and 7 deletions

View File

@ -47,7 +47,6 @@ dialog:
=1 { and <b>one other </b>}
other { and <b>{count} other </b>}
}
confirmName: "Enter <b>{nameToMatch}</b> 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}?"

View File

@ -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',