mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-05 19:59:24 +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', {
|
||||
title: gettext('Network'),
|
||||
insideWizard: true,
|
||||
dataCache: {},
|
||||
isCreate: true
|
||||
});
|
||||
|
||||
|
@ -49,17 +49,18 @@ Ext.define('PVE.lxc.NetworkInputPanel', {
|
||||
initComponent : function() {
|
||||
var me = this;
|
||||
|
||||
if (!me.dataCache) {
|
||||
throw "no dataCache specified";
|
||||
}
|
||||
|
||||
var cdata = {};
|
||||
|
||||
if (me.insideWizard) {
|
||||
me.ifname = 'net0';
|
||||
cdata.name = 'eth0';
|
||||
me.dataCache = {};
|
||||
}
|
||||
|
||||
|
||||
if (!me.dataCache) {
|
||||
throw "no dataCache specified";
|
||||
}
|
||||
|
||||
if (!me.isCreate) {
|
||||
if (!me.ifname) {
|
||||
throw "no interface name specified";
|
||||
|
Loading…
Reference in New Issue
Block a user