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
8d1075f7
authored
Jul 22, 2016
by
Czémán Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: small fix
parent
5bf0da3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
circle/dashboard/views/vm.py
+2
-4
No files found.
circle/dashboard/views/vm.py
View file @
8d1075f7
...
@@ -594,14 +594,11 @@ class VmResourcesChangeView(VmOperationView):
...
@@ -594,14 +594,11 @@ class VmResourcesChangeView(VmOperationView):
class
VmToggleBootMenuUpdate
(
VmOperationView
):
class
VmToggleBootMenuUpdate
(
VmOperationView
):
op
=
'toggle_bootmenu'
op
=
'toggle_bootmenu'
icon
=
"
save
"
icon
=
"
wrench
"
show_in_toolbar
=
False
show_in_toolbar
=
False
wait_for_result
=
0.5
wait_for_result
=
0.5
def
post
(
self
,
request
,
extra
=
None
,
*
args
,
**
kwargs
):
def
post
(
self
,
request
,
extra
=
None
,
*
args
,
**
kwargs
):
if
extra
is
None
:
extra
=
{}
instance
=
get_object_or_404
(
Instance
,
pk
=
kwargs
[
'pk'
])
instance
=
get_object_or_404
(
Instance
,
pk
=
kwargs
[
'pk'
])
form
=
ToggleBootMenuForm
(
request
.
POST
,
instance
=
instance
)
form
=
ToggleBootMenuForm
(
request
.
POST
,
instance
=
instance
)
...
@@ -817,6 +814,7 @@ vm_ops = OrderedDict([
...
@@ -817,6 +814,7 @@ vm_ops = OrderedDict([
(
'add_port'
,
VmPortAddView
),
(
'add_port'
,
VmPortAddView
),
(
'renew'
,
VmRenewView
),
(
'renew'
,
VmRenewView
),
(
'resources_change'
,
VmResourcesChangeView
),
(
'resources_change'
,
VmResourcesChangeView
),
(
'toggle_bootmenu'
,
VmToggleBootMenuUpdate
),
(
'password_reset'
,
VmOperationView
.
factory
(
(
'password_reset'
,
VmOperationView
.
factory
(
op
=
'password_reset'
,
icon
=
'unlock'
,
effect
=
'warning'
,
op
=
'password_reset'
,
icon
=
'unlock'
,
effect
=
'warning'
,
show_in_toolbar
=
False
,
wait_for_result
=
0.5
,
with_reload
=
True
)),
show_in_toolbar
=
False
,
wait_for_result
=
0.5
,
with_reload
=
True
)),
...
...
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