Changes added to UI to show Scale VM icon to only VMs which are marked as dynamically scalable.

This commit is contained in:
Harikrishna Patnala 2021-02-11 11:30:06 +05:30
parent dcaa72ccab
commit 1e84d8cf37
1 changed files with 1 additions and 1 deletions

View File

@ -286,7 +286,7 @@ export default {
label: 'label.scale.vm',
docHelp: 'adminguide/virtual_machines.html#how-to-dynamically-scale-cpu-and-ram',
dataView: true,
show: (record) => { return ['Stopped'].includes(record.state) || (['Running'].includes(record.state) && record.hypervisor !== 'KVM' && record.hypervisor !== 'LXC') },
show: (record) => { return ['Stopped'].includes(record.state) || (['Running'].includes(record.state) && record.hypervisor !== 'KVM' && record.hypervisor !== 'LXC' && record.isdynamicallyscalable) },
popup: true,
component: () => import('@/views/compute/ScaleVM.vue')
},