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
8cd3a74b
Commit
8cd3a74b
authored
Apr 03, 2015
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add ha resource panel
parent
5c94db4f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
80 additions
and
0 deletions
+80
-0
Makefile
www/manager/Makefile
+1
-0
Resources.js
www/manager/ha/Resources.js
+79
-0
No files found.
www/manager/Makefile
View file @
8cd3a74b
...
...
@@ -166,6 +166,7 @@ JSSRC= \
storage/ZFSEdit.js
\
storage/ZFSPoolEdit.js
\
ha/StatusView.js
\
ha/Resources.js
\
ha/Config.js
\
dc/Summary.js
\
dc/OptionView.js
\
...
...
www/manager/ha/Resources.js
0 → 100644
View file @
8cd3a74b
Ext
.
define
(
'
PVE.ha.ResourcesView
'
,
{
extend
:
'
Ext.grid.GridPanel
'
,
alias
:
[
'
widget.pveHAResourcesView
'
],
initComponent
:
function
()
{
var
me
=
this
;
var
store
=
new
Ext
.
data
.
Store
({
model
:
'
pve-ha-resources
'
,
proxy
:
{
type
:
'
pve
'
,
url
:
"
/api2/json/cluster/ha/resources
"
},
sorters
:
{
property
:
'
sid
'
,
order
:
'
DESC
'
}
});
var
reload
=
function
()
{
store
.
load
();
};
var
sm
=
Ext
.
create
(
'
Ext.selection.RowModel
'
,
{});
Ext
.
apply
(
me
,
{
store
:
store
,
selModel
:
sm
,
stateful
:
false
,
viewConfig
:
{
trackOver
:
false
},
columns
:
[
{
header
:
'
ID
'
,
width
:
100
,
sortable
:
true
,
dataIndex
:
'
sid
'
},
{
header
:
gettext
(
'
State
'
),
width
:
100
,
sortable
:
true
,
renderer
:
function
(
v
)
{
return
v
?
v
:
'
enabled
'
;
},
dataIndex
:
'
state
'
},
{
header
:
gettext
(
'
Group
'
),
width
:
200
,
sortable
:
true
,
dataIndex
:
'
group
'
},
{
header
:
gettext
(
'
Description
'
),
flex
:
1
,
dataIndex
:
'
comment
'
}
],
listeners
:
{
show
:
reload
// itemdblclick: run_editor
}
});
me
.
callParent
();
}
},
function
()
{
Ext
.
define
(
'
pve-ha-resources
'
,
{
extend
:
'
Ext.data.Model
'
,
fields
:
[
'
sid
'
,
'
type
'
,
'
state
'
,
'
digest
'
,
'
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