A platform for community discussion. Free, open, simple.
UX: reload the page when the default theme is changed (#33217)
Krzysztof Kotlarekc84e1abd030a
diff --git a/app/assets/javascripts/admin/addon/components/themes-grid-card.gjs b/app/assets/javascripts/admin/addon/components/themes-grid-card.gjsindex b772dd7bb5e..3ce6dae0eee 100644--- a/app/assets/javascripts/admin/addon/components/themes-grid-card.gjs+++ b/app/assets/javascripts/admin/addon/components/themes-grid-card.gjs@@ -83,6 +83,8 @@ export default class ThemeCard extends Component {},duration: "short",});++ window.location.reload();}@actiondiff --git a/spec/system/admin_customize_themes_config_area_spec.rb b/spec/system/admin_customize_themes_config_area_spec.rbindex 7710e140ddf..b526805b870 100644--- a/spec/system/admin_customize_themes_config_area_spec.rb+++ b/spec/system/admin_customize_themes_config_area_spec.rb@@ -47,6 +47,7 @@ describe "Admin Customize Themes Config Area Page", type: :system doconfig_area.mark_as_active(theme_2)expect(config_area).to have_badge(theme_2, "--active")expect(config_area).to have_no_badge(foundation_theme, "--active")+ expect(find(".theme-card", match: :first).find(".theme-card__title")).to have_text(theme_2.name)endit "allows to make theme selectable by users" do