Skip to content

Commit 7678bc1

Browse files
ui bug fix: scalevm is disabled when vm is Stopped (#5233)
* ui: scalevm is disabled even if vm is Stopped * ui: update #5233
1 parent b065e79 commit 7678bc1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ui/src/config/section/compute.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ export default {
299299
docHelp: 'adminguide/virtual_machines.html#how-to-dynamically-scale-cpu-and-ram',
300300
dataView: true,
301301
show: (record) => { return ['Stopped'].includes(record.state) || (['Running'].includes(record.state) && record.hypervisor !== 'KVM' && record.hypervisor !== 'LXC') },
302-
disabled: (record) => { return !record.isdynamicallyscalable },
302+
disabled: (record) => { return record.state === 'Running' && !record.isdynamicallyscalable },
303303
popup: true,
304304
component: () => import('@/views/compute/ScaleVM.vue')
305305
},

0 commit comments

Comments
 (0)