Revision 74c8da56 snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/ember/controllers/vm.js
b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/ember/controllers/vm.js | ||
---|---|---|
5 | 5 |
var enabledActions = this.get('model').get('enabledActions'); |
6 | 6 |
return _.map(enabledActions, function(val,key) { return actionsMetaVm[val]; }); |
7 | 7 |
}.property('model.enabledActions'), |
8 |
|
|
9 |
detailsMenu: function(){ |
|
10 |
var detailsMenu = { |
|
11 |
'info' : 'snf-info-outline', |
|
12 |
'disk-connected' : 'snf-volume-outline', |
|
13 |
'network-connected' : 'snf-network-outline', |
|
14 |
}; |
|
15 |
return detailsMenu; |
|
16 |
}.property(), |
|
8 | 17 |
|
9 | 18 |
actions: { |
10 | 19 |
|
... | ... | |
16 | 25 |
var component = Ember.View.views["modal-connect"]; |
17 | 26 |
component.set('message', 'connect to your <3 ' + this.get('model').get('name')); |
18 | 27 |
component.set('okCallback', _.bind(function() { |
19 |
|
|
20 | 28 |
alert("restarting " + this.get('model').get('name')); |
21 | 29 |
}, this)); |
22 | 30 |
$("#modal-connect").foundation('reveal', 'open'); |
... | ... | |
51 | 59 |
}, this)); |
52 | 60 |
}, |
53 | 61 |
|
54 |
} |
|
62 |
},
|
|
55 | 63 |
}); |
64 |
|
|
56 | 65 |
App.VmInfoController = App.VmController.extend(); |
Also available in: Unified diff