Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
f5bfe311
Commit
f5bfe311
authored
Oct 24, 2015
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix lxc crteate wizard
parent
a3c6e044
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
68 additions
and
68 deletions
+68
-68
CreateWizard.js
www/manager/lxc/CreateWizard.js
+8
-14
ResourceEdit.js
www/manager/lxc/ResourceEdit.js
+60
-54
No files found.
www/manager/lxc/CreateWizard.js
View file @
f5bfe311
...
@@ -160,20 +160,14 @@ Ext.define('PVE.lxc.CreateWizard', {
...
@@ -160,20 +160,14 @@ Ext.define('PVE.lxc.CreateWizard', {
]
]
},
},
{
{
xtype
:
'
inputpanel
'
,
xtype
:
'
pveLxcCPUInputPanel
'
,
title
:
gettext
(
'
Resources
'
),
title
:
gettext
(
'
CPU
'
),
items
:
[
{
xtype
:
'
pveLxcMemoryInputPanel
'
,
title
:
gettext
(
'
Memory
'
),
insideWizard
:
true
insideWizard
:
true
},
},
{
{
xtype
:
'
pveLxcCPU
InputPanel
'
,
xtype
:
'
pveLxcMemory
InputPanel
'
,
title
:
gettext
(
'
CPU
'
),
title
:
gettext
(
'
Memory
'
),
insideWizard
:
true
insideWizard
:
true
}
]
},
},
networkpanel
,
networkpanel
,
{
{
...
...
www/manager/lxc/ResourceEdit.js
View file @
f5bfe311
...
@@ -44,9 +44,7 @@ Ext.define('PVE.lxc.CPUInputPanel', {
...
@@ -44,9 +44,7 @@ Ext.define('PVE.lxc.CPUInputPanel', {
initComponent
:
function
()
{
initComponent
:
function
()
{
var
me
=
this
;
var
me
=
this
;
Ext
.
apply
(
me
,
{
var
items
=
[
subject
:
gettext
(
'
CPU
'
),
items
:
[
{
{
xtype
:
'
numberfield
'
,
xtype
:
'
numberfield
'
,
name
:
'
cpulimit
'
,
name
:
'
cpulimit
'
,
...
@@ -67,8 +65,13 @@ Ext.define('PVE.lxc.CPUInputPanel', {
...
@@ -67,8 +65,13 @@ Ext.define('PVE.lxc.CPUInputPanel', {
labelWidth
:
labelWidth
,
labelWidth
:
labelWidth
,
allowBlank
:
false
allowBlank
:
false
}
}
]
];
});
if
(
me
.
insideWizard
)
{
me
.
column1
=
items
;
}
else
{
me
.
items
=
items
;
}
me
.
callParent
();
me
.
callParent
();
}
}
...
@@ -83,9 +86,7 @@ Ext.define('PVE.lxc.MemoryInputPanel', {
...
@@ -83,9 +86,7 @@ Ext.define('PVE.lxc.MemoryInputPanel', {
initComponent
:
function
()
{
initComponent
:
function
()
{
var
me
=
this
;
var
me
=
this
;
Ext
.
apply
(
me
,
{
var
items
=
[
subject
:
gettext
(
'
Memory
'
),
items
:
[
{
{
xtype
:
'
numberfield
'
,
xtype
:
'
numberfield
'
,
name
:
'
memory
'
,
name
:
'
memory
'
,
...
@@ -108,8 +109,13 @@ Ext.define('PVE.lxc.MemoryInputPanel', {
...
@@ -108,8 +109,13 @@ Ext.define('PVE.lxc.MemoryInputPanel', {
labelWidth
:
labelWidth
,
labelWidth
:
labelWidth
,
allowBlank
:
false
allowBlank
:
false
}
}
]
];
});
if
(
me
.
insideWizard
)
{
me
.
column1
=
items
;
}
else
{
me
.
items
=
items
;
}
me
.
callParent
();
me
.
callParent
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment