mirror of
https://github.com/discourse/discourse.git
synced 2024-12-16 14:46:28 +08:00
832b3b9e60
Why this change? Back in May 17 2023 along with the release of Discourse 3.1, we announced on meta that the legacy hamburger dropdown navigation menu is deprecated and will be dropped in Discourse 3.2. This is the link to the announcement on meta: https://meta.discourse.org/t/removing-the-legacy-hamburger-navigation-menu-option/265274 ## What does this change do? This change removes the `legacy` option from the `navigation_menu` site setting and migrates existing sites on the `legacy` option to the `header dropdown` option. All references to the `legacy` option in code and tests have been removed as well.
26 lines
481 B
Ruby
26 lines
481 B
Ruby
# frozen_string_literal: true
|
|
|
|
module UserSidebarMixin
|
|
include NavigationMenuTagsMixin
|
|
|
|
def sidebar_tags
|
|
serialize_tags(object.visible_sidebar_tags(scope))
|
|
end
|
|
|
|
def display_sidebar_tags
|
|
DiscourseTagging.filter_visible(Tag, scope).exists?
|
|
end
|
|
|
|
def include_display_sidebar_tags?
|
|
include_sidebar_tags?
|
|
end
|
|
|
|
def include_sidebar_tags?
|
|
SiteSetting.tagging_enabled
|
|
end
|
|
|
|
def sidebar_category_ids
|
|
object.secured_sidebar_category_ids(scope)
|
|
end
|
|
end
|