Revision f27e976b
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 |
}, |
b/snf-cyclades-app/synnefo/ui/static/snf/js/neutron.js | ||
---|---|---|
373 | 373 |
return false |
374 | 374 |
} |
375 | 375 |
var vm_active = this.get('vm') && this.get('vm').is_active(); |
376 |
if (synnefo.config.hotplug_enabled && vm_active) {
|
|
376 |
if (!synnefo.config.hotplug_enabled && this.get('vm') && vm_active) {
|
|
377 | 377 |
return false; |
378 | 378 |
} |
379 | 379 |
var status_ok = _.contains(['DOWN', 'ACTIVE', 'CONNECTED'], |
Also available in: Unified diff