cms/app-client/app/routes/tabs/thematiques.js
changeset 243 0f29cc270f9e
parent 240 aa101458cd4e
child 299 2c16302b06f7
equal deleted inserted replaced
242:523ca6e73353 243:0f29cc270f9e
    22         promise.then(function(value) {
    22         promise.then(function(value) {
    23             if (self.get('themes').length) {
    23             if (self.get('themes').length) {
    24                 value = self.get('themes').pushObjects(value.get('content'));
    24                 value = self.get('themes').pushObjects(value.get('content'));
    25             }
    25             }
    26             self.set('themes', value);
    26             self.set('themes', value);
    27         })
    27         });
    28         return promise;
    28         return promise;
    29     }),
    29     }),
    30 
    30 
    31     setupController: function(controller, model) {
    31     setupController: function(controller) {
    32         this._super(...arguments);
    32         this._super(...arguments);
    33         controller.set('all', this.get('all'));
    33         controller.set('all', this.get('all'));
    34         // Add ArrayProxy to template context.
    34         // Add ArrayProxy to template context.
    35         controller.set('themes', this.get('themes'));
    35         controller.set('themes', this.get('themes'));
    36     },
    36     },