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
04ba4cc6
Commit
04ba4cc6
authored
Mar 26, 2012
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug #125: correctly display realm
parent
ea6a252e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
PVEProxy.js
www/manager/data/PVEProxy.js
+17
-1
RealmComboBox.js
www/manager/form/RealmComboBox.js
+1
-1
No files found.
www/manager/data/PVEProxy.js
View file @
04ba4cc6
...
@@ -32,7 +32,23 @@ Ext.define('PVE.RestProxy', {
...
@@ -32,7 +32,23 @@ Ext.define('PVE.RestProxy', {
Ext
.
define
(
'
pve-domains
'
,
{
Ext
.
define
(
'
pve-domains
'
,
{
extend
:
"
Ext.data.Model
"
,
extend
:
"
Ext.data.Model
"
,
fields
:
[
'
realm
'
,
'
type
'
,
'
comment
'
,
'
default
'
],
fields
:
[
'
realm
'
,
'
type
'
,
'
comment
'
,
'
default
'
,
{
name
:
'
descr
'
,
// Note: We use this in the RealmComboBox.js
// (see Bug #125)
convert
:
function
(
value
,
record
)
{
var
info
=
record
.
data
;
var
text
;
if
(
value
)
{
return
value
;
}
// return realm if there is no comment
return
info
.
comment
||
info
.
realm
;
}
}
],
proxy
:
{
proxy
:
{
type
:
'
pve
'
,
type
:
'
pve
'
,
url
:
"
/api2/json/access/domains
"
url
:
"
/api2/json/access/domains
"
...
...
www/manager/form/RealmComboBox.js
View file @
04ba4cc6
...
@@ -22,7 +22,7 @@ Ext.define('PVE.form.RealmComboBox', {
...
@@ -22,7 +22,7 @@ Ext.define('PVE.form.RealmComboBox', {
autoSelect
:
false
,
autoSelect
:
false
,
triggerAction
:
'
all
'
,
triggerAction
:
'
all
'
,
valueField
:
'
realm
'
,
valueField
:
'
realm
'
,
displayField
:
'
comment
'
,
displayField
:
'
descr
'
,
getState
:
function
()
{
getState
:
function
()
{
return
{
value
:
this
.
getValue
()
};
return
{
value
:
this
.
getValue
()
};
},
},
...
...
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