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
96a9946f
Commit
96a9946f
authored
Jan 24, 2014
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ceph: show task progress
parent
dd43568c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
2 deletions
+26
-2
Monitor.js
www/manager/ceph/Monitor.js
+12
-0
OSD.js
www/manager/ceph/OSD.js
+10
-1
Edit.js
www/manager/window/Edit.js
+4
-1
No files found.
www/manager/ceph/Monitor.js
View file @
96a9946f
...
...
@@ -3,6 +3,8 @@ Ext.define('PVE.CephCreateMon', {
alias
:
[
'
widget.pveCephCreateMon
'
],
subject
:
'
Ceph Monitor
'
,
showProgress
:
true
,
setNode
:
function
(
nodename
)
{
var
me
=
this
;
...
...
@@ -83,6 +85,11 @@ Ext.define('PVE.node.CephMonList', {
url
:
"
/nodes/
"
+
rec
.
data
.
host
+
"
/ceph/
"
+
cmd
,
method
:
'
POST
'
,
params
:
{
service
:
"
mon.
"
+
rec
.
data
.
name
},
success
:
function
(
response
,
options
)
{
var
upid
=
response
.
result
.
data
;
var
win
=
Ext
.
create
(
'
PVE.window.TaskProgress
'
,
{
upid
:
upid
});
win
.
show
();
},
failure
:
function
(
response
,
opts
)
{
Ext
.
Msg
.
alert
(
gettext
(
'
Error
'
),
response
.
htmlStatus
);
}
...
...
@@ -133,6 +140,11 @@ Ext.define('PVE.node.CephMonList', {
url
:
"
/nodes/
"
+
rec
.
data
.
host
+
"
/ceph/mon/
"
+
rec
.
data
.
name
,
method
:
'
DELETE
'
,
success
:
function
(
response
,
options
)
{
var
upid
=
response
.
result
.
data
;
var
win
=
Ext
.
create
(
'
PVE.window.TaskProgress
'
,
{
upid
:
upid
});
win
.
show
();
},
failure
:
function
(
response
,
opts
)
{
Ext
.
Msg
.
alert
(
gettext
(
'
Error
'
),
response
.
htmlStatus
);
}
...
...
www/manager/ceph/OSD.js
View file @
96a9946f
...
...
@@ -4,6 +4,8 @@ Ext.define('PVE.CephCreateOsd', {
subject
:
'
Ceph OSD
'
,
showProgress
:
true
,
initComponent
:
function
()
{
/*jslint confusion: true */
var
me
=
this
;
...
...
@@ -51,6 +53,8 @@ Ext.define('PVE.CephRemoveOsd', {
isRemove
:
true
,
showProgress
:
true
,
initComponent
:
function
()
{
/*jslint confusion: true */
var
me
=
this
;
...
...
@@ -145,7 +149,12 @@ Ext.define('PVE.node.CephOsdTree', {
params
:
{
service
:
rec
.
data
.
name
},
waitMsgTarget
:
me
,
method
:
'
POST
'
,
success
:
reload
,
success
:
function
(
response
,
options
)
{
var
upid
=
response
.
result
.
data
;
var
win
=
Ext
.
create
(
'
PVE.window.TaskProgress
'
,
{
upid
:
upid
});
win
.
show
();
me
.
mon
(
win
,
'
close
'
,
reload
,
me
);
},
failure
:
function
(
response
,
opts
)
{
Ext
.
Msg
.
alert
(
gettext
(
'
Error
'
),
response
.
htmlStatus
);
}
...
...
www/manager/window/Edit.js
View file @
96a9946f
...
...
@@ -22,6 +22,8 @@ Ext.define('PVE.window.Edit', {
backgroundDelay
:
0
,
showProgress
:
false
,
isValid
:
function
()
{
var
me
=
this
;
...
...
@@ -110,7 +112,8 @@ Ext.define('PVE.window.Edit', {
},
success
:
function
(
response
,
options
)
{
me
.
close
();
if
(
me
.
backgroundDelay
&&
response
.
result
.
data
)
{
if
((
me
.
backgroundDelay
||
me
.
showProgress
)
&&
response
.
result
.
data
)
{
var
upid
=
response
.
result
.
data
;
var
win
=
Ext
.
create
(
'
PVE.window.TaskProgress
'
,
{
upid
:
upid
...
...
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