]> git.proxmox.com Git - pve-manager.git/commitdiff
guest import: allow setting VLAN-tag
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 28 Mar 2024 18:56:10 +0000 (19:56 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 28 Mar 2024 18:56:11 +0000 (19:56 +0100)
can be a requirement for live-import to make sense

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/window/GuestImport.js

index b714b840760a69a54a76fea6e34de89acd450c6e..944d275ba0af50429e2c921ddf0cac73e5b084f0 100644 (file)
@@ -4,6 +4,9 @@ Ext.define('PVE.window.GuestImport', {
 
     title: gettext('Import Guest'),
 
+    width: 720,
+    bodyPadding: 0,
+
     submitUrl: function() {
        let me = this;
        return `/nodes/${me.nodename}/qemu`;
@@ -314,9 +317,6 @@ Ext.define('PVE.window.GuestImport', {
        },
     },
 
-    width: 700,
-    bodyPadding: 0,
-
     items: [{
        xtype: 'tabpanel',
        defaults: {
@@ -816,13 +816,13 @@ Ext.define('PVE.window.GuestImport', {
                            },
                            {
                                text: gettext('MAC address'),
-                               flex: 1,
+                               flex: 7,
                                dataIndex: 'macaddr',
                                renderer: 'renderMacAddress',
                            },
                            {
                                text: gettext('Model'),
-                               flex: 1,
+                               flex: 7,
                                dataIndex: 'model',
                                xtype: 'widgetcolumn',
                                widget: {
@@ -836,7 +836,7 @@ Ext.define('PVE.window.GuestImport', {
                                text: gettext('Bridge'),
                                dataIndex: 'bridge',
                                xtype: 'widgetcolumn',
-                               flex: 1,
+                               flex: 6,
                                widget: {
                                    xtype: 'PVE.form.BridgeSelector',
                                    name: 'bridge',
@@ -847,6 +847,19 @@ Ext.define('PVE.window.GuestImport', {
                                },
                                onWidgetAttach: 'setNodename',
                            },
+                           {
+                               text: gettext('VLAN Tag'),
+                               dataIndex: 'tag',
+                               xtype: 'widgetcolumn',
+                               flex: 5,
+                               widget: {
+                                   xtype: 'pveVlanField',
+                                   fieldLabel: undefined,
+                                   name: 'tag',
+                                   isFormField: false,
+                                   allowBlank: true,
+                               },
+                           },
                        ],
                    },
                    {