]> git.proxmox.com Git - pve-manager.git/blobdiff - www/manager6/qemu/IPConfigEdit.js
api: add proxmox-firewall to versions pkg list
[pve-manager.git] / www / manager6 / qemu / IPConfigEdit.js
index 6aa0275969cea7a276fa0f30b08b5f31b7eb7826..829240c297245521cac7d7b6b3bcf8628392110d 100644 (file)
@@ -21,7 +21,7 @@ Ext.define('PVE.qemu.IPConfigPanel', {
 
        var cfg = PVE.Parser.printIPConfig(values);
        if (cfg === '') {
-           params['delete'] = [me.confid];
+           params.delete = [me.confid];
        } else {
            params[me.confid] = cfg;
        }
@@ -55,7 +55,7 @@ Ext.define('PVE.qemu.IPConfigPanel', {
        me.setValues(me.ipconfig);
     },
 
-    initComponent : function() {
+    initComponent: function() {
        var me = this;
 
        me.ipconfig = {};
@@ -158,6 +158,14 @@ Ext.define('PVE.qemu.IPConfigPanel', {
                        checked: false,
                        margin: '0 0 0 10',
                    },
+                   {
+                       xtype: 'radiofield',
+                       boxLabel: gettext('SLAAC'),
+                       name: 'ipv6mode',
+                       inputValue: 'auto',
+                       checked: false,
+                       margin: '0 0 0 10',
+                   },
                ],
            },
            {
@@ -187,8 +195,7 @@ Ext.define('PVE.qemu.IPConfigEdit', {
 
     isAdd: true,
 
-    initComponent : function() {
-
+    initComponent: function() {
        var me = this;
 
        // convert confid from netX to ipconfigX
@@ -203,7 +210,7 @@ Ext.define('PVE.qemu.IPConfigEdit', {
            throw "no node name specified";
        }
 
-       me.isCreate = me.confid ? false : true;
+       me.isCreate = !me.confid;
 
        var ipanel = Ext.create('PVE.qemu.IPConfigPanel', {
            confid: me.confid,