settings: Hide open popovers when switching panels in settings overlay.

This is a prep commit for changing the bots list page to show normal
user popover instead of extended profile one. This is added so that any
open popovers are closed while switching panels in settings overlay.

This change was not needed previously because we were using modal for
showing extended user profile. Now as we would be adding popover, we
would need this change to close the open popovers while switching
panels in settings overlay.
This commit is contained in:
sahil839 2020-07-04 01:50:57 +05:30 committed by Tim Abbott
parent 05bf72a75c
commit 1ae00a306b
1 changed files with 1 additions and 0 deletions

View File

@ -84,6 +84,7 @@ class SettingsPanelMenu {
}
activate_section_or_default(section) {
popovers.hide_all();
if (!section) {
// No section is given so we display the default.