mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-13 21:21:44 +00:00
feat: handle bulk actions
Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com>
This commit is contained in:
parent
fdc635955b
commit
f2d5172224
@ -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}?"
|
||||
|
||||
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user