config: fix vm snapshot actions

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2020-01-03 10:03:36 +05:30
parent 74f11c66d8
commit c9a978ffa4
1 changed files with 8 additions and 8 deletions

View File

@ -177,12 +177,12 @@ export default {
details: ['name', 'id', 'volumename', 'intervaltype', 'account', 'domain', 'created'],
actions: [
{
api: 'createVolume',
icon: 'plus',
label: 'Create volume',
api: 'createTemplate',
icon: 'picture',
label: 'Create Template',
dataView: true,
show: (record) => { return record.state === 'BackedUp' },
args: ['snapshotid', 'name'],
args: ['snapshotid', 'name', 'displaytext', 'ostypeid', 'ispublic', 'isfeatured', 'isdynamicallyscalable', 'requireshvm', 'passwordenabled', 'sshkeyenabled'],
mapping: {
snapshotid: {
value: (record) => { return record.id }
@ -190,12 +190,12 @@ export default {
}
},
{
api: 'createTemplate',
icon: 'picture',
label: 'Create volume',
api: 'createVolume',
icon: 'hdd',
label: 'Create Volume',
dataView: true,
show: (record) => { return record.state === 'BackedUp' },
args: ['snapshotid', 'name', 'displaytext', 'ostypeid', 'ispublic', 'isfeatured', 'isdynamicallyscalable', 'requireshvm', 'passwordenabled', 'sshkeyenabled'],
args: ['snapshotid', 'name'],
mapping: {
snapshotid: {
value: (record) => { return record.id }