mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
11 lines
385 B
JavaScript
11 lines
385 B
JavaScript
export default Ember.Route.extend({
|
|
model(params) {
|
|
const all = this.modelFor('adminCustomizeCssHtml');
|
|
const model = all.findProperty('id', parseInt(params.site_customization_id));
|
|
return model ? { model, section: params.section } : this.replaceWith('adminCustomizeCssHtml.index');
|
|
},
|
|
|
|
setupController(controller, hash) {
|
|
controller.setProperties(hash);
|
|
}
|
|
});
|