Revision 6bf34226 snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/ember/controllers/items.js

b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/ember/controllers/items.js
2 2
    
3 3
    codeName: '',
4 4
    
5

  
5 6
    // returns the same as codename, i.e. networks
6 7
    title: function () {
7 8
        return this.codeName;
......
38 39

  
39 40
    // enables filtering in action bar    
40 41
    hasFilter: true,
42

  
43
    codeNameParent: function () {
44
        return this.codeName;
45
    }.property(),
46

  
47
    codeNameChildInit: function () {
48
        var item = this.codeName.substring(0, this.codeName.length - 1);
49
        return item+'init';
50
    }.property(),
41 51
    
42 52
});
43 53

  
44 54

  
45 55
App.NetworksController = App.ItemsListController.extend({
46
    codeName : 'networks'
56
    codeName : 'networks',
47 57
});
48 58

  
49 59

  

Also available in: Unified diff