UX: Release new user profile navigation for sidebar compatibility (#20134)

With the introduction of the sidebar navigation menu, the design team at
Discourse redesigned the user profile navigation to better coexist with
the sidebar.
This commit is contained in:
Alan Guo Xiang Tan
2023-02-21 10:16:16 +08:00
committed by GitHub
parent c47015b861
commit 359dc1c532
25 changed files with 18 additions and 61 deletions

View File

@ -293,12 +293,9 @@ class CurrentUserSerializer < BasicUserSerializer
redesigned_user_menu_enabled
end
# TODO(tgxworld): Return true for now until reliance on this attribute has been removed on the client side
def redesigned_user_page_nav_enabled
if SiteSetting.enable_new_user_profile_nav_groups.present?
object.in_any_groups?(SiteSetting.enable_new_user_profile_nav_groups_map)
else
false
end
true
end
def custom_sidebar_sections_enabled