Skip to content

A platform for community discussion. Free, open, simple.

Allow adminCustomizeThemes.edit route name to be overridden in themes-show

David Taylora17cb11dc36b
diff --git a/app/assets/javascripts/admin/controllers/admin-customize-themes-show.js.es6 b/app/assets/javascripts/admin/controllers/admin-customize-themes-show.js.es6
index b8850b10f8f..16eff829470 100644
--- a/app/assets/javascripts/admin/controllers/admin-customize-themes-show.js.es6
+++ b/app/assets/javascripts/admin/controllers/admin-customize-themes-show.js.es6
@@ -8,6 +8,8 @@ const THEME_UPLOAD_VAR = 2;
export default Ember.Controller.extend({
+ editRouteName: 'adminCustomizeThemes.edit',
+
@computed("model", "allThemes")
parentThemes(model, allThemes) {
let parents = allThemes.filter(theme =>
@@ -142,7 +144,7 @@ export default Ember.Controller.extend({
},
editTheme() {
- let edit = ()=>this.transitionToRoute('adminCustomizeThemes.edit', this.get('model.id'), 'common', 'scss');
+ let edit = ()=>this.transitionToRoute(this.get('editRouteName'), this.get('model.id'), 'common', 'scss');
if (this.get("model.remote_theme")) {
bootbox.confirm(I18n.t("admin.customize.theme.edit_confirm"), result => {