root / snf-cyclades-app / synnefo / ui / new_ui / ui / app / routes / volume.js @ 48c5b3ea
History | View | Annotate | Download (904 Bytes)
1 |
App.VolumeRoute = Ember.Route.extend({ |
---|---|
2 |
|
3 |
|
4 |
renderTemplate: function() { |
5 |
|
6 |
this.render('details'); |
7 |
|
8 |
this.render('lt-bar', { |
9 |
into: 'details', |
10 |
outlet: 'lt-bar', |
11 |
controller: 'volumes', |
12 |
}); |
13 |
}, |
14 |
|
15 |
}); |
16 |
|
17 |
|
18 |
App.VolumeinitRoute = Ember.Route.extend({ |
19 |
|
20 |
model: function(){ |
21 |
return this.store.find('volume'); |
22 |
}, |
23 |
|
24 |
afterModel: function(model) { |
25 |
this.transitionTo('volume', model.get('firstObject').id); |
26 |
}, |
27 |
|
28 |
}); |
29 |
|
30 |
App.VolumeInfoRoute = Ember.Route.extend({ |
31 |
renderTemplate: function() { |
32 |
this.render('details/info'); |
33 |
}, |
34 |
model: function () { |
35 |
return this.modelFor("volume"); |
36 |
}, |
37 |
}); |
38 |
|
39 |
App.VolumeVmConnectedRoute = Ember.Route.extend({ |
40 |
renderTemplate: function() { |
41 |
this.render('details/volume-vm-connected'); |
42 |
}, |
43 |
model: function () { |
44 |
return this.modelFor("volume"); |
45 |
} |
46 |
}); |