2015-08-06 12:43:56 -04:00
|
|
|
export default Ember.Route.extend({
|
|
|
|
model(params) {
|
|
|
|
const all = this.modelFor('adminCustomizeCssHtml');
|
2016-10-26 15:44:36 -04:00
|
|
|
const model = all.findBy('id', parseInt(params.site_customization_id));
|
2015-08-06 12:43:56 -04:00
|
|
|
return model ? { model, section: params.section } : this.replaceWith('adminCustomizeCssHtml.index');
|
|
|
|
},
|
|
|
|
|
|
|
|
setupController(controller, hash) {
|
|
|
|
controller.setProperties(hash);
|
|
|
|
}
|
|
|
|
});
|