UX: Changes in top categories of hamburger menu (#6200)

This commit is contained in:
Vinoth Kannan
2018-07-30 14:13:00 +05:30
committed by GitHub
parent acde8d4323
commit 78d91b1daf
8 changed files with 39 additions and 49 deletions

View File

@ -2,8 +2,6 @@ require_dependency 'new_post_manager'
class CurrentUserSerializer < BasicUserSerializer
MAX_TOP_CATEGORIES_COUNT = 6.freeze
attributes :name,
:unread_notifications,
:unread_private_messages,
@ -169,7 +167,7 @@ class CurrentUserSerializer < BasicUserSerializer
WHEN notification_level = 4 THEN 3
END")
.pluck(:category_id)
.slice(0, MAX_TOP_CATEGORIES_COUNT)
.slice(0, SiteSetting.hamburger_menu_categories_count)
end
def dismissed_banner_key