From a4962d762ae9d95061e9d4d8756df0c9d4cb898c Mon Sep 17 00:00:00 2001 From: Rakesh Venkatesh Date: Thu, 14 Jan 2021 12:19:35 +0100 Subject: [PATCH] Update the name of the volume Allow users to update the name of the volume --- src/config/section/storage.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/config/section/storage.js b/src/config/section/storage.js index c90707986..fc003c350 100644 --- a/src/config/section/storage.js +++ b/src/config/section/storage.js @@ -115,6 +115,21 @@ export default { ['Running', 'Stopped', 'Destroyed'].includes(record.vmstate) } }, + { + api: 'updateVolume', + icon: 'edit', + label: 'label.edit', + dataView: true, + args: ['name'], + mapping: { + account: { + value: (record) => { return record.account } + }, + domainid: { + value: (record) => { return record.domainid } + } + } + }, { api: 'createSnapshot', icon: 'camera',