[pve-devel] [PATCH manager 04/11] remove CPUOptions

Dominik Csapak d.csapak at proxmox.com
Thu Apr 5 16:03:49 CEST 2018


this is now merged with ProcessorEdit

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/Makefile             |  1 -
 www/manager6/qemu/CPUOptions.js   | 77 ---------------------------------------
 www/manager6/qemu/HardwareView.js | 22 -----------
 3 files changed, 100 deletions(-)
 delete mode 100644 www/manager6/qemu/CPUOptions.js

diff --git a/www/manager6/Makefile b/www/manager6/Makefile
index 6daa259f..dc4cebbd 100644
--- a/www/manager6/Makefile
+++ b/www/manager6/Makefile
@@ -116,7 +116,6 @@ JSSRC= 				                 	\
 	qemu/HDMove.js					\
 	qemu/HDThrottle.js				\
 	qemu/HDEfi.js					\
-	qemu/CPUOptions.js				\
 	qemu/DisplayEdit.js				\
 	qemu/KeyboardEdit.js				\
 	qemu/HardwareView.js				\
diff --git a/www/manager6/qemu/CPUOptions.js b/www/manager6/qemu/CPUOptions.js
deleted file mode 100644
index a2ef45ff..00000000
--- a/www/manager6/qemu/CPUOptions.js
+++ /dev/null
@@ -1,77 +0,0 @@
-Ext.define('PVE.qemu.CPUOptionsInputPanel', {
-    extend: 'Proxmox.panel.InputPanel',
-    alias: 'widget.PVE.qemu.CPUOptionsInputPanel',
-
-    onGetValues: function(values) {
-	var me = this;
-
-	PVE.Utils.delete_if_default(values, 'cpulimit', '0', 0);
-	PVE.Utils.delete_if_default(values, 'cpuunits', '1024', 0);
-
-	return values;
-    },
-
-    initComponent : function() {
-	var me = this;
-
-        var items = [
-            {
-                xtype: 'proxmoxintegerfield',
-                name: 'vcpus',
-                minValue: 1,
-                maxValue: me.maxvcpus,
-                value: '',
-                fieldLabel: gettext('VCPUs'),
-		deleteEmpty: true,
-                allowBlank: true,
-                emptyText: me.maxvcpus
-            },
-            {
-                xtype: 'numberfield',
-                name: 'cpulimit',
-                minValue: 0,
-                maxValue: me.maxvcpus,
-                value: '',
-                step: 1,
-                fieldLabel: gettext('CPU limit'),
-                allowBlank: true,
-                emptyText: gettext('unlimited')
-            },
-	    {
-                xtype: 'proxmoxintegerfield',
-                name: 'cpuunits',
-                fieldLabel: gettext('CPU units'),
-                minValue: 8,
-                maxValue: 500000,
-                value: '1024',
-		deleteEmpty: true,
-                allowBlank: true
-            }
-	];
-
-	me.items = items;
-
-	me.callParent();
-    }
-});
-
-Ext.define('PVE.qemu.CPUOptions', {
-    extend: 'Proxmox.window.Edit',
-
-    initComponent : function() {
-	var me = this;
-
-        var ipanel = Ext.create('PVE.qemu.CPUOptionsInputPanel', {
-            maxvcpus: me.maxvcpus
-        });
-	
-	Ext.apply(me, {
-	    subject: gettext('CPU options'),
-	    items: [ ipanel ]
-	});
-
-	me.callParent();
-
-	me.load();
-    }
-});
diff --git a/www/manager6/qemu/HardwareView.js b/www/manager6/qemu/HardwareView.js
index e726cb70..218f9059 100644
--- a/www/manager6/qemu/HardwareView.js
+++ b/www/manager6/qemu/HardwareView.js
@@ -308,22 +308,6 @@ Ext.define('PVE.qemu.HardwareView', {
 	    win.on('destroy', reload);
 	};
 
-	var run_cpuoptions = function() {
-	    var sockets = me.getObjectValue('sockets', 1);
-	    var cores = me.getObjectValue('cores', 1);
-
-	    var win = Ext.create('PVE.qemu.CPUOptions', {
-		maxvcpus: sockets * cores,
-		vmid: vmid,
-		pveSelNode: me.pveSelNode,
-		url: '/api2/extjs/' + baseurl
-	    });
-
-	    win.show();
-
-	    win.on('destroy', reload);
-	};
-
 	var run_move = function() {
 	    var rec = sm.getSelection()[0];
 	    if (!rec) {
@@ -369,11 +353,6 @@ Ext.define('PVE.qemu.HardwareView', {
 	    handler: run_diskthrottle
 	});
 
-	var cpuoptions_btn = new Ext.Button({
-	    text: gettext('CPU options'),
-	    handler: run_cpuoptions
-	});
-
 	var remove_btn = new Proxmox.button.Button({
 	    text: gettext('Remove'),
 	    defaultText: gettext('Remove'),
@@ -622,7 +601,6 @@ Ext.define('PVE.qemu.HardwareView', {
 		resize_btn,
 		move_btn,
 		diskthrottle_btn,
-		cpuoptions_btn,
 		revert_btn
 	    ],
 	    rows: rows,
-- 
2.11.0




More information about the pve-devel mailing list