fix #2132: gui: set vcpu default maxValue to 1

else one can set it to higher values if the vm has one socket with one core

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2019-03-15 10:59:10 +01:00 committed by Thomas Lamprecht
parent 6539859680
commit de63d77a3f

View File

@ -124,6 +124,7 @@ Ext.define('PVE.qemu.ProcessorInputPanel', {
xtype: 'proxmoxintegerfield', xtype: 'proxmoxintegerfield',
name: 'vcpus', name: 'vcpus',
minValue: 1, minValue: 1,
maxValue: 1,
value: '', value: '',
fieldLabel: gettext('VCPUs'), fieldLabel: gettext('VCPUs'),
deleteEmpty: true, deleteEmpty: true,