mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
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:

committed by
GitHub

parent
c47015b861
commit
359dc1c532
@ -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
|
||||
|
Reference in New Issue
Block a user