Revision 7100e75f snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/ember/controllers/item.js
b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/ember/controllers/item.js | ||
---|---|---|
2 | 2 |
|
3 | 3 |
codeName: 'vm', |
4 | 4 |
|
5 |
needs: function() { |
|
6 |
|
|
7 |
var needs = []; |
|
8 |
/* |
|
9 |
App.Vm.eachRelationship(function(name, meta) { |
|
10 |
if (meta.kind == 'hasMany') { |
|
11 |
needs.push(name); |
|
12 |
} |
|
13 |
}); |
|
14 |
*/ |
|
15 |
needs.push(this.codeName+'s'); |
|
16 |
return needs; |
|
17 |
|
|
18 |
}.property(), |
|
5 |
needs: [], |
|
19 | 6 |
|
20 | 7 |
hasViewCls: true, |
21 | 8 |
|
Also available in: Unified diff