[UI] Edit backup offering (#5546)

* Allow edit backup offering

* Address reviews

Co-authored-by: SadiJr <sadi@scclouds.com.br>
This commit is contained in:
SadiJr 2021-10-04 12:12:51 -03:00 committed by GitHub
parent 9f5ac89c9a
commit 93c0b602db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -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',