mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Implement glimmer topic-list (#26743)
(experimental) The initial implementation of glimmer topic-list and related components. Does not include new APIs and isn't compatible with existing customization. That's gonna come in future PRs. Enabled by adding groups to `experimental_glimmer_topic_list_groups` setting.
This commit is contained in:
@@ -74,7 +74,8 @@ class CurrentUserSerializer < BasicUserSerializer
|
||||
:new_new_view_enabled?,
|
||||
:use_experimental_topic_bulk_actions?,
|
||||
:use_admin_sidebar,
|
||||
:can_view_raw_email
|
||||
:can_view_raw_email,
|
||||
:use_glimmer_topic_list?
|
||||
|
||||
delegate :user_stat, to: :object, private: true
|
||||
delegate :any_posts, :draft_count, :pending_posts_count, :read_faq?, to: :user_stat
|
||||
@@ -314,4 +315,8 @@ class CurrentUserSerializer < BasicUserSerializer
|
||||
def can_view_raw_email
|
||||
scope.user.in_any_groups?(SiteSetting.view_raw_email_allowed_groups_map)
|
||||
end
|
||||
|
||||
def use_glimmer_topic_list?
|
||||
scope.user.in_any_groups?(SiteSetting.experimental_glimmer_topic_list_groups_map)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user