]>
git.proxmox.com Git - pve-manager.git/blob - www/manager6/qemu/CPUOptions.js
1 Ext
.define('PVE.qemu.CPUOptionsInputPanel', {
2 extend
: 'PVE.panel.InputPanel',
3 alias
: 'widget.PVE.qemu.CPUOptionsInputPanel',
5 onGetValues: function(values
) {
8 PVE
.Utils
.delete_if_default(values
, 'cpulimit', '0', 0);
9 PVE
.Utils
.delete_if_default(values
, 'cpuunits', '1024', 0);
14 initComponent : function() {
19 xtype
: 'proxmoxintegerfield',
22 maxValue
: me
.maxvcpus
,
24 fieldLabel
: gettext('VCPUs'),
27 emptyText
: me
.maxvcpus
33 maxValue
: me
.maxvcpus
,
36 fieldLabel
: gettext('CPU limit'),
38 emptyText
: gettext('unlimited')
41 xtype
: 'proxmoxintegerfield',
43 fieldLabel
: gettext('CPU units'),
58 Ext
.define('PVE.qemu.CPUOptions', {
59 extend
: 'Proxmox.window.Edit',
61 initComponent : function() {
64 var ipanel
= Ext
.create('PVE.qemu.CPUOptionsInputPanel', {
69 subject
: gettext('CPU options'),