]> git.proxmox.com Git - pve-manager.git/commitdiff
remove CPUOptions
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 5 Apr 2018 14:03:49 +0000 (16:03 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 6 Apr 2018 09:45:14 +0000 (11:45 +0200)
this is now merged with ProcessorEdit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/Makefile
www/manager6/qemu/CPUOptions.js [deleted file]
www/manager6/qemu/HardwareView.js

index 6daa259f8db93071139b1b8bdb2f1c638335a31d..dc4cebbd04b39301f3092b9b3d7ccd3697582cdd 100644 (file)
@@ -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 (file)
index a2ef45f..0000000
+++ /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();
-    }
-});
index e726cb705a41f2746f11a16d54adc5e841a13b8c..218f90595f29f124a5ebc91a0bd778570ce7c225 100644 (file)
@@ -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,