Revision f27e976b snf-cyclades-app/synnefo/ui/static/snf/js/models.js
b/snf-cyclades-app/synnefo/ui/static/snf/js/models.js | ||
---|---|---|
1123 | 1123 |
}, |
1124 | 1124 |
|
1125 | 1125 |
can_connect: function() { |
1126 |
if (synnefo.config.hotplug_enabled && this.is_active()) { return false } |
|
1126 |
if (!synnefo.config.hotplug_enabled && this.is_active()) { return false }
|
|
1127 | 1127 |
return _.contains(["ACTIVE", "STOPPED"], this.get("status")) && |
1128 | 1128 |
!this.get('suspended') |
1129 | 1129 |
}, |
Also available in: Unified diff