mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
compute: fix non-admin start VM args (#328)
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
416baf104d
commit
bc638dbfec
@ -86,7 +86,7 @@ export default {
|
|||||||
dataView: true,
|
dataView: true,
|
||||||
groupAction: true,
|
groupAction: true,
|
||||||
show: (record) => { return ['Stopped'].includes(record.state) },
|
show: (record) => { return ['Stopped'].includes(record.state) },
|
||||||
args: ['podid', 'clusterid', 'hostid'],
|
args: (record, store) => { return ['Admin'].includes(store.userInfo.roletype) ? ['podid', 'clusterid', 'hostid'] : [] },
|
||||||
response: (result) => { return result.virtualmachine && result.virtualmachine.password ? `Password of the VM is ${result.virtualmachine.password}` : null }
|
response: (result) => { return result.virtualmachine && result.virtualmachine.password ? `Password of the VM is ${result.virtualmachine.password}` : null }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user