Revision f29f1023 snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/ember/router.js

b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/ember/router.js
1 1
// if the path is the same as the resource name, there is no need to 
2 2
// specify it.
3 3

  
4

  
5
/*
6
* There is a problem if the menu is generated dynamically.
7
* The various components are defined in application.js, but must also be
8
* declared in router.js file
9
* TODO: Look for a better solution
10
*/
4 11
UI.Router.map(function () {
5 12
  this.resource('index', { path: '/' });
6 13
  this.resource('vms');
7 14
  this.resource('networks');
8 15
  this.resource('disks');
16
  this.resource('images');
17
  this.resource('snapshots');
9 18
});
10 19

  
20

  
11 21
UI.VmsRoute = Ember.Route.extend({
12 22
  model: function() {
13 23
    return vms;

Also available in: Unified diff