Commit 3cd551b6 by Kálmán Viktor

dashboard: fix save resources button

parent c86f5ba1
...@@ -174,10 +174,10 @@ class VmDetailView(GraphMixin, CheckedDetailView): ...@@ -174,10 +174,10 @@ class VmDetailView(GraphMixin, CheckedDetailView):
context['is_owner'] = is_owner context['is_owner'] = is_owner
# operation also allows RUNNING (if with_shutdown is present) # operation also allows RUNNING (if with_shutdown is present)
context['save_resources_enabled'] = instance.status not in ( context['save_resources_enabled'] = instance.status in (
"RUNNING", "STOPPED",
"PENDING", "PENDING",
"SUSPENDED") )
return context return context
......
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