mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-07 10:39:49 +00:00
ui: lxc/Network: set empty datachache by default when in wizard
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
f03db57eb6
commit
d8e3d77c15
@ -50,7 +50,6 @@ Ext.define('PVE.lxc.CreateWizard', {
|
|||||||
var networkpanel = Ext.create('PVE.lxc.NetworkInputPanel', {
|
var networkpanel = Ext.create('PVE.lxc.NetworkInputPanel', {
|
||||||
title: gettext('Network'),
|
title: gettext('Network'),
|
||||||
insideWizard: true,
|
insideWizard: true,
|
||||||
dataCache: {},
|
|
||||||
isCreate: true
|
isCreate: true
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -49,15 +49,16 @@ Ext.define('PVE.lxc.NetworkInputPanel', {
|
|||||||
initComponent : function() {
|
initComponent : function() {
|
||||||
var me = this;
|
var me = this;
|
||||||
|
|
||||||
if (!me.dataCache) {
|
|
||||||
throw "no dataCache specified";
|
|
||||||
}
|
|
||||||
|
|
||||||
var cdata = {};
|
var cdata = {};
|
||||||
|
|
||||||
if (me.insideWizard) {
|
if (me.insideWizard) {
|
||||||
me.ifname = 'net0';
|
me.ifname = 'net0';
|
||||||
cdata.name = 'eth0';
|
cdata.name = 'eth0';
|
||||||
|
me.dataCache = {};
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!me.dataCache) {
|
||||||
|
throw "no dataCache specified";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!me.isCreate) {
|
if (!me.isCreate) {
|
||||||
|
Loading…
Reference in New Issue
Block a user