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
5fe962a5
Commit
5fe962a5
authored
Apr 07, 2015
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ha GUI: show configuration errors
parent
35cd4df0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
Resources.js
www/manager/ha/Resources.js
+18
-1
No files found.
www/manager/ha/Resources.js
View file @
5fe962a5
...
...
@@ -21,6 +21,20 @@ Ext.define('PVE.ha.ResourcesView', {
store
.
load
();
};
var
render_error
=
function
(
dataIndex
,
value
,
metaData
,
record
)
{
var
errors
=
record
.
data
.
errors
;
if
(
errors
)
{
var
msg
=
errors
[
dataIndex
];
if
(
msg
)
{
metaData
.
tdCls
=
'
x-form-invalid-field
'
;
var
html
=
'
<p>
'
+
Ext
.
htmlEncode
(
msg
)
+
'
</p>
'
;
metaData
.
tdAttr
=
'
data-qwidth=600 data-qtitle="ERROR" data-qtip="
'
+
html
.
replace
(
/
\"
/g
,
'
"
'
)
+
'
"
'
;
}
}
return
value
;
};
var
sm
=
Ext
.
create
(
'
Ext.selection.RowModel
'
,
{});
var
run_editor
=
function
()
{
...
...
@@ -108,6 +122,9 @@ Ext.define('PVE.ha.ResourcesView', {
header
:
gettext
(
'
Group
'
),
width
:
200
,
sortable
:
true
,
renderer
:
function
(
value
,
metaData
,
record
)
{
return
render_error
(
'
group
'
,
value
,
metaData
,
record
);
},
dataIndex
:
'
group
'
},
{
...
...
@@ -129,7 +146,7 @@ Ext.define('PVE.ha.ResourcesView', {
Ext
.
define
(
'
pve-ha-resources
'
,
{
extend
:
'
Ext.data.Model
'
,
fields
:
[
'
sid
'
,
'
type
'
,
'
state
'
,
'
digest
'
,
'
group
'
,
'
comment
'
'
sid
'
,
'
type
'
,
'
state
'
,
'
digest
'
,
'
errors
'
,
'
group
'
,
'
comment
'
],
idProperty
:
'
sid
'
});
...
...
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