FIX: Allow theme edit route name to be overridden
This is required for the theme-creator plugin, this change won't have any effect on regular Discourse installations
This commit is contained in:
parent
6a444eee56
commit
1b0fbc4d30
|
@ -11,6 +11,7 @@ export default Ember.Controller.extend({
|
|||
downloadUrl: url("model.id", "/admin/themes/%@"),
|
||||
previewUrl: url("model.id", "/admin/themes/%@/preview"),
|
||||
addButtonDisabled: Em.computed.empty("selectedChildThemeId"),
|
||||
editRouteName: "adminCustomizeThemes.edit",
|
||||
|
||||
@computed("model", "allThemes", "model.component")
|
||||
parentThemes(model, allThemes) {
|
||||
|
@ -147,7 +148,7 @@ export default Ember.Controller.extend({
|
|||
},
|
||||
transitionToEditRoute() {
|
||||
this.transitionToRoute(
|
||||
"adminCustomizeThemes.edit",
|
||||
this.get("editRouteName"),
|
||||
this.get("model.id"),
|
||||
"common",
|
||||
"scss"
|
||||
|
|
Loading…
Reference in New Issue