From a17cb11dc36b7f669a0bdcec5465783f71cc03c3 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Wed, 28 Mar 2018 23:17:23 +0100 Subject: [PATCH] Allow adminCustomizeThemes.edit route name to be overridden in themes-show --- .../admin/controllers/admin-customize-themes-show.js.es6 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 => {