var cfg = PVE.Parser.printIPConfig(values);
if (cfg === '') {
- params['delete'] = [me.confid];
+ params.delete = [me.confid];
} else {
params[me.confid] = cfg;
}
me.setValues(me.ipconfig);
},
- initComponent : function() {
+ initComponent: function() {
var me = this;
me.ipconfig = {};
checked: false,
margin: '0 0 0 10',
},
+ {
+ xtype: 'radiofield',
+ boxLabel: gettext('SLAAC'),
+ name: 'ipv6mode',
+ inputValue: 'auto',
+ checked: false,
+ margin: '0 0 0 10',
+ },
],
},
{
isAdd: true,
- initComponent : function() {
-
+ initComponent: function() {
var me = this;
// convert confid from netX to ipconfigX
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,