From c7821259851b6f55ace840e52bb7f9d29c110787 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Thu, 1 Sep 2022 12:22:41 +0100 Subject: [PATCH] UX: Close the revamped user menu when opening modals (#18148) When opening the DnD modal and the User Status modal, user menu remained open, this fixes it. --- .../discourse/app/components/user-menu/menu.hbs | 2 +- .../app/components/user-menu/profile-tab-content.js | 2 ++ .../javascripts/discourse/app/widgets/header.js | 11 +++++++++-- .../discourse/tests/acceptance/do-not-disturb-test.js | 11 +++++++++++ .../discourse/tests/acceptance/user-status-test.js | 11 +++++++++++ 5 files changed, 34 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/discourse/app/components/user-menu/menu.hbs b/app/assets/javascripts/discourse/app/components/user-menu/menu.hbs index aa5d2624a38..ac8795a3a92 100644 --- a/app/assets/javascripts/discourse/app/components/user-menu/menu.hbs +++ b/app/assets/javascripts/discourse/app/components/user-menu/menu.hbs @@ -6,7 +6,7 @@ class="quick-access-panel" tabindex="-1" aria-labelledby={{concat "user-menu-button-" this.currentTabId}}> - {{component this.currentPanelComponent}} + {{component this.currentPanelComponent closeUserMenu=@closeUserMenu}}