From 93c0b602db85ce60804915e99874fa51c7fb3048 Mon Sep 17 00:00:00 2001 From: SadiJr <31869303+SadiJr@users.noreply.github.com> Date: Mon, 4 Oct 2021 12:12:51 -0300 Subject: [PATCH] [UI] Edit backup offering (#5546) * Allow edit backup offering * Address reviews Co-authored-by: SadiJr --- ui/src/config/section/offering.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ui/src/config/section/offering.js b/ui/src/config/section/offering.js index 80f8df233f0..6a09e6f8040 100644 --- a/ui/src/config/section/offering.js +++ b/ui/src/config/section/offering.js @@ -206,7 +206,7 @@ export default { docHelp: 'adminguide/virtual_machines.html#backup-offerings', permission: ['listBackupOfferings', 'listInfrastructure'], columns: ['name', 'description', 'zonename'], - details: ['name', 'id', 'description', 'externalid', 'zone', 'created'], + details: ['name', 'id', 'description', 'externalid', 'zone', 'allowuserdrivenbackups', 'created'], actions: [{ api: 'importBackupOffering', icon: 'plus', @@ -215,6 +215,14 @@ export default { listView: true, popup: true, component: () => import('@/views/offering/ImportBackupOffering.vue') + }, { + api: 'updateBackupOffering', + icon: 'edit', + label: 'label.edit', + dataView: true, + popup: true, + groupMap: (selection) => { return selection.map(x => { return { id: x } }) }, + args: ['name', 'description'] }, { api: 'deleteBackupOffering', icon: 'delete',