discourse/app/assets/javascripts/admin/routes/admin-customize-css-html-show.js.es6

12 lines
385 B
Plaintext
Raw Normal View History

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);
}
});