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
82f58d3b
Commit
82f58d3b
authored
Nov 25, 2011
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use predefined model pve-storage-content
Else ExtJS ignores the idProperty setting.
parent
9ce4c970
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
15 deletions
+12
-15
FileSelector.js
www/manager/form/FileSelector.js
+1
-13
ContentView.js
www/manager/storage/ContentView.js
+11
-2
No files found.
www/manager/form/FileSelector.js
View file @
82f58d3b
...
...
@@ -41,19 +41,7 @@ Ext.define('PVE.form.FileSelector', {
var
me
=
this
;
var
store
=
Ext
.
create
(
'
Ext.data.Store
'
,
{
fields
:
[
'
volid
'
,
'
format
'
,
'
size
'
,
'
used
'
,
'
vmid
'
,
'
channel
'
,
'
id
'
,
'
lun
'
,
{
name
:
'
text
'
,
convert
:
function
(
value
,
record
)
{
if
(
value
)
{
return
value
;
}
return
PVE
.
Utils
.
render_storage_content
(
value
,
{},
record
);
}
}
]
model
:
'
pve-storage-content
'
});
Ext
.
apply
(
me
,
{
...
...
www/manager/storage/ContentView.js
View file @
82f58d3b
...
...
@@ -295,7 +295,7 @@ Ext.define('PVE.storage.ContentView', {
flex
:
1
,
sortable
:
true
,
renderer
:
PVE
.
Utils
.
render_storage_content
,
dataIndex
:
'
volid
'
dataIndex
:
'
text
'
},
{
header
:
'
Format
'
,
...
...
@@ -322,7 +322,16 @@ Ext.define('PVE.storage.ContentView', {
extend
:
'
Ext.data.Model
'
,
fields
:
[
'
volid
'
,
'
content
'
,
'
format
'
,
'
size
'
,
'
used
'
,
'
vmid
'
,
'
channel
'
,
'
id
'
,
'
lun
'
'
channel
'
,
'
id
'
,
'
lun
'
,
{
name
:
'
text
'
,
convert
:
function
(
value
,
record
)
{
if
(
value
)
{
return
value
;
}
return
PVE
.
Utils
.
render_storage_content
(
value
,
{},
record
);
}
}
],
idProperty
:
'
volid
'
});
...
...
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