Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
fc30e871
authored
Oct 06, 2014
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'issue-288'
Conflicts: circle/dashboard/views/vm.py
parents
04beb592
fc3d79dd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletions
+9
-1
circle/dashboard/static/dashboard/vm-common.js
+2
-1
circle/dashboard/static/dashboard/vm-details.js
+2
-0
circle/dashboard/views/vm.py
+5
-0
No files found.
circle/dashboard/static/dashboard/vm-common.js
View file @
fc30e871
...
@@ -51,7 +51,8 @@ $(function() {
...
@@ -51,7 +51,8 @@ $(function() {
if
(
data
.
success
)
{
if
(
data
.
success
)
{
$
(
'a[href="#activity"]'
).
trigger
(
"click"
);
$
(
'a[href="#activity"]'
).
trigger
(
"click"
);
if
(
data
.
with_reload
)
{
if
(
data
.
with_reload
)
{
location
.
reload
();
// when the activity check stops the page will reload
reload_vm_detail
=
true
;
}
}
/* if there are messages display them */
/* if there are messages display them */
...
...
circle/dashboard/static/dashboard/vm-details.js
View file @
fc30e871
var
show_all
=
false
;
var
show_all
=
false
;
var
in_progress
=
false
;
var
in_progress
=
false
;
var
activity_hash
=
5
;
var
activity_hash
=
5
;
var
reload_vm_detail
=
false
;
$
(
function
()
{
$
(
function
()
{
/* do we need to check for new activities */
/* do we need to check for new activities */
...
@@ -404,6 +405,7 @@ function checkNewActivity(runs) {
...
@@ -404,6 +405,7 @@ function checkNewActivity(runs) {
);
);
}
else
{
}
else
{
in_progress
=
false
;
in_progress
=
false
;
if
(
reload_vm_detail
)
location
.
reload
();
}
}
$
(
'a[href="#activity"] i'
).
removeClass
(
'fa-spin'
);
$
(
'a[href="#activity"] i'
).
removeClass
(
'fa-spin'
);
},
},
...
...
circle/dashboard/views/vm.py
View file @
fc30e871
...
@@ -372,6 +372,9 @@ class VmAddInterfaceView(FormOperationMixin, VmOperationView):
...
@@ -372,6 +372,9 @@ class VmAddInterfaceView(FormOperationMixin, VmOperationView):
class
VmDiskModifyView
(
FormOperationMixin
,
VmOperationView
):
class
VmDiskModifyView
(
FormOperationMixin
,
VmOperationView
):
show_in_toolbar
=
False
show_in_toolbar
=
False
with_reload
=
True
icon
=
'arrows-alt'
effect
=
"success"
def
get_form_kwargs
(
self
):
def
get_form_kwargs
(
self
):
choices
=
self
.
get_op
()
.
instance
.
disks
choices
=
self
.
get_op
()
.
instance
.
disks
...
@@ -397,6 +400,7 @@ class VmCreateDiskView(FormOperationMixin, VmOperationView):
...
@@ -397,6 +400,7 @@ class VmCreateDiskView(FormOperationMixin, VmOperationView):
icon
=
'hdd-o'
icon
=
'hdd-o'
effect
=
"success"
effect
=
"success"
is_disk_operation
=
True
is_disk_operation
=
True
with_reload
=
True
def
get_form_kwargs
(
self
):
def
get_form_kwargs
(
self
):
op
=
self
.
get_op
()
op
=
self
.
get_op
()
...
@@ -414,6 +418,7 @@ class VmDownloadDiskView(FormOperationMixin, VmOperationView):
...
@@ -414,6 +418,7 @@ class VmDownloadDiskView(FormOperationMixin, VmOperationView):
icon
=
'download'
icon
=
'download'
effect
=
"success"
effect
=
"success"
is_disk_operation
=
True
is_disk_operation
=
True
with_reload
=
True
class
VmMigrateView
(
VmOperationView
):
class
VmMigrateView
(
VmOperationView
):
...
...
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