Commit c75bbb1c authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

ui: Prevent connecting of suspended vms to private networks

parent 741f2729
......@@ -1104,7 +1104,8 @@
},
can_connect: function() {
return _.contains(["ACTIVE", "STOPPED"], this.get("status"))
return _.contains(["ACTIVE", "STOPPED"], this.get("status")) &&
!this.get('suspended')
},
can_disconnect: function() {
......
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