Commit b655b9c8 authored by Rune Myrhaug's avatar Rune Myrhaug
Browse files

Fikse slik at en stopped VM (som ikke er deallokert) kan deallokeres, startes eller slettes

parent 11081749
Pipeline #2770 passed with stages
in 3 minutes and 45 seconds
......@@ -21,6 +21,10 @@ class Machine {
if (view.display_status === 'VM deallocated') {
view.may.start = true;
view.may.delete = true;
} else if (view.display_status === 'VM stopped') {
view.may.stop = true;
view.may.start = true;
view.may.delete = true;
} else if (view.display_status === 'VM running') {
view.may.stop = 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 to comment