mirror of https://github.com/apache/cloudstack.git
UI: remove duplicated section for backup (#8678)
This commit is contained in:
parent
1a1131154e
commit
ed579bfeca
|
|
@ -459,60 +459,6 @@ export default {
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'backup',
|
||||
title: 'label.backup',
|
||||
icon: 'cloud-upload-outlined',
|
||||
permission: ['listBackups'],
|
||||
columns: [{ name: (record) => { return record.virtualmachinename } }, 'virtualmachinename', 'status', 'type', 'created', 'account', 'zone'],
|
||||
details: ['virtualmachinename', 'id', 'type', 'externalid', 'size', 'virtualsize', 'volumes', 'backupofferingname', 'zone', 'account', 'domain', 'created'],
|
||||
actions: [
|
||||
{
|
||||
api: 'restoreBackup',
|
||||
icon: 'sync-outlined',
|
||||
docHelp: 'adminguide/virtual_machines.html#restoring-vm-backups',
|
||||
label: 'label.backup.restore',
|
||||
message: 'message.backup.restore',
|
||||
dataView: true,
|
||||
show: (record) => { return record.state !== 'Destroyed' }
|
||||
},
|
||||
{
|
||||
api: 'restoreVolumeFromBackupAndAttachToVM',
|
||||
icon: 'paper-clip-outlined',
|
||||
label: 'label.backup.attach.restore',
|
||||
message: 'message.backup.attach.restore',
|
||||
dataView: true,
|
||||
show: (record) => { return record.state !== 'Destroyed' },
|
||||
popup: true,
|
||||
component: shallowRef(defineAsyncComponent(() => import('@/views/storage/RestoreAttachBackupVolume.vue')))
|
||||
},
|
||||
{
|
||||
api: 'removeVirtualMachineFromBackupOffering',
|
||||
icon: 'scissor-outlined',
|
||||
label: 'label.backup.offering.remove',
|
||||
message: 'message.backup.offering.remove',
|
||||
dataView: true,
|
||||
show: (record) => { return record.state !== 'Destroyed' },
|
||||
args: ['forced', 'virtualmachineid'],
|
||||
mapping: {
|
||||
forced: {
|
||||
value: (record) => { return true }
|
||||
},
|
||||
virtualmachineid: {
|
||||
value: (record) => { return record.virtualmachineid }
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
api: 'deleteBackup',
|
||||
icon: 'delete-outlined',
|
||||
label: 'label.delete.backup',
|
||||
message: 'message.delete.backup',
|
||||
dataView: true,
|
||||
show: (record) => { return record.state !== 'Destroyed' }
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'buckets',
|
||||
title: 'label.buckets',
|
||||
|
|
|
|||
Loading…
Reference in New Issue