mirror of https://github.com/apache/cloudstack.git
infra: fix actions to disable/enable pods
Fixes #183 Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
34f6a7c25b
commit
42b0af6c32
|
|
@ -52,7 +52,13 @@ export default {
|
|||
icon: 'play-circle',
|
||||
label: 'label.action.enable.pod',
|
||||
dataView: true,
|
||||
show: (record) => { return record.allocationstate === 'Disabled' }
|
||||
show: (record) => { return record.allocationstate === 'Disabled' },
|
||||
args: ['allocationstate'],
|
||||
mapping: {
|
||||
allocationstate: {
|
||||
value: (record) => 'Enabled'
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
api: 'updatePod',
|
||||
|
|
@ -60,7 +66,12 @@ export default {
|
|||
label: 'label.action.disable.pod',
|
||||
dataView: true,
|
||||
show: (record) => { return record.allocationstate === 'Enabled' },
|
||||
defaultArgs: { allocationstate: 'Disabled' }
|
||||
args: ['allocationstate'],
|
||||
mapping: {
|
||||
allocationstate: {
|
||||
value: (record) => 'Disabled'
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
api: 'deletePod',
|
||||
|
|
|
|||
Loading…
Reference in New Issue