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
5c94db4f
Commit
5c94db4f
authored
Apr 03, 2015
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add ha status view
parent
1978151c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
79 additions
and
0 deletions
+79
-0
Makefile
www/manager/Makefile
+1
-0
StatusView.js
www/manager/ha/StatusView.js
+78
-0
No files found.
www/manager/Makefile
View file @
5c94db4f
...
@@ -165,6 +165,7 @@ JSSRC= \
...
@@ -165,6 +165,7 @@ JSSRC= \
storage/SheepdogEdit.js
\
storage/SheepdogEdit.js
\
storage/ZFSEdit.js
\
storage/ZFSEdit.js
\
storage/ZFSPoolEdit.js
\
storage/ZFSPoolEdit.js
\
ha/StatusView.js
\
ha/Config.js
\
ha/Config.js
\
dc/Summary.js
\
dc/Summary.js
\
dc/OptionView.js
\
dc/OptionView.js
\
...
...
www/manager/ha/StatusView.js
0 → 100644
View file @
5c94db4f
Ext
.
define
(
'
PVE.ha.StatusView
'
,
{
extend
:
'
Ext.grid.GridPanel
'
,
alias
:
[
'
widget.pveHAStatusView
'
],
sortPriority
:
{
quorum
:
1
,
master
:
2
,
lrm
:
3
,
service
:
4
},
initComponent
:
function
()
{
var
me
=
this
;
me
.
rstore
=
Ext
.
create
(
'
PVE.data.ObjectStore
'
,
{
interval
:
me
.
interval
,
model
:
'
pve-ha-status
'
,
storeid
:
'
pve-store-
'
+
(
++
Ext
.
idSeed
),
groupField
:
'
type
'
,
proxy
:
{
type
:
'
pve
'
,
url
:
'
/api2/json/cluster/ha/status/current
'
}
});
PVE
.
Utils
.
monStoreErrors
(
me
,
me
.
rstore
);
var
store
=
Ext
.
create
(
'
PVE.data.DiffStore
'
,
{
rstore
:
me
.
rstore
,
sortAfterUpdate
:
true
,
sorters
:
[{
sorterFn
:
function
(
rec1
,
rec2
)
{
var
p1
=
me
.
sortPriority
[
rec1
.
data
.
type
];
var
p2
=
me
.
sortPriority
[
rec2
.
data
.
type
];
return
(
p1
!==
p2
)
?
((
p1
>
p2
)
?
1
:
-
1
)
:
0
;
}
}]
});
Ext
.
apply
(
me
,
{
store
:
store
,
stateful
:
false
,
viewConfig
:
{
trackOver
:
false
,
},
columns
:
[
{
header
:
gettext
(
'
Type
'
),
width
:
80
,
dataIndex
:
'
type
'
},
{
header
:
gettext
(
'
Status
'
),
width
:
80
,
flex
:
1
,
dataIndex
:
'
status
'
}
]
});
me
.
callParent
();
me
.
on
(
'
show
'
,
me
.
rstore
.
startUpdate
);
me
.
on
(
'
hide
'
,
me
.
rstore
.
stopUpdate
);
me
.
on
(
'
destroy
'
,
me
.
rstore
.
stopUpdate
);
}
},
function
()
{
Ext
.
define
(
'
pve-ha-status
'
,
{
extend
:
'
Ext.data.Model
'
,
fields
:
[
'
id
'
,
'
type
'
,
'
node
'
,
'
status
'
,
'
sid
'
],
idProperty
:
'
id
'
});
});
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