Commit 2611c800 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

ui: Improve inactive vm actions handling

parent e7af3a10
......@@ -1643,7 +1643,7 @@
}
models.VM.AVAILABLE_ACTIONS_INACTIVE = {
'resize': ['ACTIVE']
'resize': ['STOPPED']
}
// api status values
......
......@@ -562,7 +562,7 @@
this.action(action).removeClass("disabled");
var inactive = models.VM.AVAILABLE_ACTIONS_INACTIVE[action];
if (inactive && _.contains(inactive, this.vm.get('status'))) {
if (inactive && !_.contains(inactive, this.vm.get('status'))) {
this.action(action).addClass("inactive");
} else {
this.action(action).removeClass("inactive");
......
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