Revision a3e25d12
b/snf-cyclades-app/synnefo/ui/static/snf/js/models.js | ||
---|---|---|
1389 | 1389 |
// get actions that the user can execute |
1390 | 1390 |
// depending on the vm state/status |
1391 | 1391 |
get_available_actions: function() { |
1392 |
if (this.get('suspended')) { return [] } |
|
1392 | 1393 |
return models.VM.AVAILABLE_ACTIONS[this.state()]; |
1393 | 1394 |
}, |
1394 | 1395 |
|
Also available in: Unified diff