From c9a978ffa42f3f161f81aec919c98117e4776ee3 Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Fri, 3 Jan 2020 10:03:36 +0530 Subject: [PATCH] config: fix vm snapshot actions Signed-off-by: Rohit Yadav --- ui/src/config/section/storage.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ui/src/config/section/storage.js b/ui/src/config/section/storage.js index 22b1bd6b1c0..80b3c1d8094 100644 --- a/ui/src/config/section/storage.js +++ b/ui/src/config/section/storage.js @@ -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 }