mirror of https://github.com/apache/cloudstack.git
ui: VM - hide button take vm volume snapshot for Destroyed state (#5345)
Fixes #5340
This commit is contained in:
parent
0390281ad2
commit
74b6332572
|
|
@ -181,6 +181,10 @@ export default {
|
|||
docHelp: 'adminguide/virtual_machines.html#virtual-machine-snapshots',
|
||||
dataView: true,
|
||||
popup: true,
|
||||
show: (record) => {
|
||||
return ((['Running'].includes(record.state) && record.hypervisor !== 'LXC') ||
|
||||
(['Stopped'].includes(record.state) && !['KVM', 'LXC'].includes(record.hypervisor)))
|
||||
},
|
||||
component: () => import('@/views/compute/CreateSnapshotWizard.vue')
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue