mirror of
https://github.com/discourse/discourse.git
synced 2025-06-24 17:35:36 +08:00
Refactor Customizations to have deeper URLs
This commit is contained in:
@ -0,0 +1,11 @@
|
||||
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);
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user