Revision 20e2dbc5 snf-cyclades-app/synnefo/ui/new_ui/ui/app/controllers/base.js
b/snf-cyclades-app/synnefo/ui/new_ui/ui/app/controllers/base.js | ||
---|---|---|
16 | 16 |
iconCls: function () { |
17 | 17 |
return 'snf-'+this.get('_item')+'-full'; |
18 | 18 |
}.property(), |
19 |
|
|
20 |
// allows grid-view/list-view icons in actions-bar |
|
21 |
hasViewOptions: true, |
|
19 | 22 |
|
23 |
// allows search functionality |
|
24 |
hasSearch: true, |
|
25 |
|
|
26 |
// allows items filtering |
|
27 |
hasFilter: true, |
|
28 |
|
|
29 |
pageTitle: function () { |
|
30 |
return this.get('type')+' ('+this.get('viewCls')+')'; |
|
31 |
}.property(), |
|
32 |
|
|
33 |
// used for link-to purposes |
|
34 |
parent: function () { |
|
35 |
return this.type; |
|
36 |
}.property(), |
|
37 |
|
|
38 |
// used for link-to purposes |
|
39 |
childInit: function () { |
|
40 |
return this.get('_item')+'init'; |
|
41 |
}.property(), |
|
42 |
|
|
20 | 43 |
}); |
21 | 44 |
|
22 | 45 |
Snf.ElemController = Ember.ObjectController.extend({ |
... | ... | |
27 | 50 |
|
28 | 51 |
hasConnect: false, |
29 | 52 |
|
53 |
// allows grid-view/list-view icons in actions-bar |
|
54 |
hasViewOptions: true, |
|
55 |
|
|
56 |
// allows search functionality |
|
57 |
hasSearch: false, |
|
58 |
|
|
59 |
// allows items filtering |
|
60 |
hasFilter: false, |
|
61 |
|
|
62 |
pageTitle: function (){ |
|
63 |
return this.get('model').get('name'); |
|
64 |
}.property(), |
|
65 |
|
|
66 |
parent: function() { |
|
67 |
return this.type+'s'; |
|
68 |
}.property(), |
|
69 |
|
|
70 |
childInit: function() { |
|
71 |
return this.codeName+'init'; |
|
72 |
}.property(), |
|
73 |
|
|
30 | 74 |
}); |
Also available in: Unified diff