Commit f179463d by Kálmán Viktor

Merge branch 'issue-422' into 'master'

Fixed 'Save resources' button in 'Suspended' state

Now it shows, that in 'Suspended' state resources cannot be changed.

See merge request !351
parents 1f7f49bb 3cd551b6
......@@ -174,8 +174,10 @@ class VmDetailView(GraphMixin, CheckedDetailView):
context['is_owner'] = is_owner
# operation also allows RUNNING (if with_shutdown is present)
context['save_resources_enabled'] = instance.status not in ("RUNNING",
context['save_resources_enabled'] = instance.status in (
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