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> (cherry picked from commit f2d517222433dde29b1e0742f3b4a27523410831)
This commit is contained in:
parent
7194d52000
commit
89b43060df
@ -47,7 +47,6 @@ dialog:
|
|||||||
=1 { and <b>one other </b>}
|
=1 { and <b>one other </b>}
|
||||||
other { and <b>{count} 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"
|
protip: "Tip: Hold the {alternateLabel} key while clicking action to bypass this confirmation"
|
||||||
stop:
|
stop:
|
||||||
message: "Are you sure you want to continue stop the {type} {names}?"
|
message: "Are you sure you want to continue stop the {type} {names}?"
|
||||||
|
|||||||
@ -102,12 +102,13 @@ export default class VirtVm extends HarvesterResource {
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
action: 'stopVM',
|
action: 'stopVM',
|
||||||
altAction: 'altStopVM',
|
altAction: 'altStopVM',
|
||||||
enabled: !!this.actions?.stop,
|
enabled: !!this.actions?.stop,
|
||||||
icon: 'icon icon-close',
|
icon: 'icon icon-close',
|
||||||
label: this.t('harvester.action.stop'),
|
label: this.t('harvester.action.stop'),
|
||||||
bulkable: true
|
bulkable: true,
|
||||||
|
bulkAction: 'stopVM',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
action: 'forceStop',
|
action: 'forceStop',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user