Revision a37c5497 snf-cyclades-app/synnefo/ui/static/snf/js/models.js
b/snf-cyclades-app/synnefo/ui/static/snf/js/models.js | ||
---|---|---|
1006 | 1006 |
unbind: function() { |
1007 | 1007 |
models.VM.__super__.unbind.apply(this, arguments); |
1008 | 1008 |
}, |
1009 |
|
|
1010 |
can_connect: function() { |
|
1011 |
return _.contains(["ACTIVE", "STOPPED"], this.get("status")) |
|
1012 |
}, |
|
1009 | 1013 |
|
1010 | 1014 |
can_resize: function() { |
1011 | 1015 |
return this.get('status') == 'STOPPED'; |
Also available in: Unified diff