mirror of
https://github.com/discourse/discourse.git
synced 2024-12-16 08:46:30 +08:00
12 lines
385 B
Plaintext
12 lines
385 B
Plaintext
|
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);
|
||
|
}
|
||
|
});
|