Commit 8d1075f7 by Czémán Arnold

dashboard: small fix

parent 5bf0da3b
Pipeline #147 passed with stage
in 0 seconds
...@@ -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)),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment