Revision 74c8da56 snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/ember/routes/vm.js
b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/ember/routes/vm.js | ||
---|---|---|
5 | 5 |
}, |
6 | 6 |
|
7 | 7 |
renderTemplate: function() { |
8 |
this.render('vm'); |
|
8 |
|
|
9 |
this.render('details'); |
|
9 | 10 |
|
10 | 11 |
this.render('lt-bar', { |
11 |
into: 'vm',
|
|
12 |
into: 'details',
|
|
12 | 13 |
outlet: 'lt-bar', |
13 | 14 |
controller: 'vms', |
14 | 15 |
}); |
16 |
this.render('tabs-details', { |
|
17 |
into: 'details', |
|
18 |
outlet: 'tabs-details', |
|
19 |
controller: 'vms', |
|
20 |
}); |
|
15 | 21 |
}, |
16 | 22 |
}); |
17 | 23 |
|
18 | 24 |
|
19 | 25 |
App.VminitRoute = Ember.Route.extend({ |
20 | 26 |
|
21 |
model: function(params){
|
|
27 |
model: function(){ |
|
22 | 28 |
return this.store.find('vm'); |
23 | 29 |
}, |
24 | 30 |
|
... | ... | |
28 | 34 |
|
29 | 35 |
}); |
30 | 36 |
|
37 |
App.VmInfoRoute = Ember.Route.extend({ |
|
38 |
renderTemplate: function() { |
|
39 |
this.render('details/info'); |
|
40 |
}, |
|
41 |
model: function () { |
|
42 |
return this.modelFor("vm"); |
|
43 |
}, |
|
44 |
}); |
|
45 |
|
|
46 |
App.VmDiskConnectedRoute = Ember.Route.extend({ |
|
47 |
renderTemplate: function() { |
|
48 |
this.render('details/disk-connected'); |
|
49 |
}, |
|
50 |
model: function () { |
|
51 |
return this.modelFor("vm"); |
|
52 |
} |
|
53 |
}); |
|
54 |
|
|
55 |
App.VmNetworkConnectedRoute = Ember.Route.extend({ |
|
56 |
renderTemplate: function() { |
|
57 |
this.render('details/network-connected'); |
|
58 |
}, |
|
59 |
model: function () { |
|
60 |
return this.modelFor("vm"); |
|
61 |
} |
|
62 |
}); |
Also available in: Unified diff