Revision a6c6857c 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 | ||
---|---|---|
1 |
App.VmController = Ember.ObjectController.extend({ |
|
2 |
|
|
3 |
needs: ['vms'], |
|
4 |
|
|
5 |
hasViewCls: true, |
|
6 |
|
|
7 |
/*icon: function () { |
|
8 |
return this.get('parentController').get('iconCls'); |
|
9 |
}.property(),*/ |
|
10 |
|
|
1 |
App.VmController =App.ItemsItemController.extend({ |
|
11 | 2 |
icon: 'snf-pc-full', |
12 | 3 |
|
13 |
codeName: 'vm', |
|
14 |
|
|
15 |
hasTags: true, |
|
16 |
|
|
17 |
codeNameParent: function() { |
|
18 |
return this.codeName+'s'; |
|
19 |
}.property(), |
|
20 |
|
|
21 |
codeNameChildInit: function() { |
|
22 |
return this.codeName+'init'; |
|
23 |
}.property(), |
|
24 |
|
|
25 | 4 |
actionsMeta: function() { |
26 | 5 |
var enabledActions = this.get('model').get('enabledActions'); |
27 |
return _.map(enabledActions, function(val,key) {return actionsMetaVm[val]; }); |
|
6 |
return _.map(enabledActions, function(val,key) { return actionsMetaVm[val]; });
|
|
28 | 7 |
}.property('model.enabledActions'), |
29 |
|
|
8 |
|
|
30 | 9 |
actions: { |
31 | 10 |
|
32 | 11 |
deleteTag: function(tag) { |
... | ... | |
72 | 51 |
}, this)); |
73 | 52 |
}, |
74 | 53 |
|
75 |
}, |
|
76 |
}); |
|
77 |
|
|
78 |
|
|
79 |
App.VmInfoController = App.VmController.extend({ |
|
54 |
} |
|
80 | 55 |
}); |
56 |
App.VmInfoController = App.VmController.extend(); |
Also available in: Unified diff