mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
fix start VMs through group action (#9652)
This commit is contained in:
parent
3f5a77ef58
commit
a93f7154a0
@ -120,7 +120,13 @@ export default {
|
||||
groupAction: true,
|
||||
popup: true,
|
||||
groupMap: (selection, values) => { return selection.map(x => { return { id: x, considerlasthost: values.considerlasthost } }) },
|
||||
args: ['considerlasthost'],
|
||||
args: (record, store) => {
|
||||
if (['Admin'].includes(store.userInfo.roletype)) {
|
||||
return ['considerlasthost']
|
||||
}
|
||||
|
||||
return []
|
||||
},
|
||||
show: (record) => { return ['Stopped'].includes(record.state) },
|
||||
component: shallowRef(defineAsyncComponent(() => import('@/views/compute/StartVirtualMachine.vue')))
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user