[pve-devel] [PATCH v5 manager 4/6] ui: backup window: switch to proxmox input panel

Fabian Ebner f.ebner at proxmox.com
Thu May 6 14:16:30 CEST 2021


It's not an Ext.form.Panel, so there is no fieldDefaults.

Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---
 www/manager6/window/Backup.js | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/www/manager6/window/Backup.js b/www/manager6/window/Backup.js
index 8d9824f3..2625a718 100644
--- a/www/manager6/window/Backup.js
+++ b/www/manager6/window/Backup.js
@@ -92,13 +92,9 @@ Ext.define('PVE.window.Backup', {
 	    },
 	});
 
-	me.formPanel = Ext.create('Ext.form.Panel', {
+	me.formPanel = Ext.create('Proxmox.panel.InputPanel', {
 	    bodyPadding: 10,
 	    border: false,
-	    fieldDefaults: {
-		labelWidth: 100,
-		anchor: '100%',
-	    },
 	    items: [
 		storagesel,
 		modeSelector,
@@ -107,13 +103,11 @@ Ext.define('PVE.window.Backup', {
 	    ],
 	});
 
-	var form = me.formPanel.getForm();
-
 	var submitBtn = Ext.create('Ext.Button', {
 	    text: gettext('Backup'),
 	    handler: function() {
 		var storage = storagesel.getValue();
-		var values = form.getValues();
+		let values = me.formPanel.getValues();
 		var params = {
 		    storage: storage,
 		    vmid: me.vmid,
@@ -169,7 +163,6 @@ Ext.define('PVE.window.Backup', {
 
 	Ext.apply(me, {
 	    title: title,
-	    width: 350,
 	    modal: true,
 	    layout: 'auto',
 	    border: false,
-- 
2.20.1





More information about the pve-devel mailing list