WIP: Experiemental Bulk Topic Actions Dropdown (#25245)

* WIP: Experiemental Bulk Topic Actions Dropdown

Creates a new dropdown that can be used for topic bulk actions.
This commit is contained in:
Blake Erickson
2024-01-25 09:12:06 -07:00
committed by GitHub
parent 7b173e883f
commit 89883b2f51
19 changed files with 463 additions and 7 deletions

View File

@ -66,7 +66,8 @@ class CurrentUserSerializer < BasicUserSerializer
:sidebar_tags,
:sidebar_category_ids,
:sidebar_sections,
:new_new_view_enabled?
:new_new_view_enabled?,
:use_experimental_topic_bulk_actions?
delegate :user_stat, to: :object, private: true
delegate :any_posts, :draft_count, :pending_posts_count, :read_faq?, to: :user_stat
@ -277,4 +278,8 @@ class CurrentUserSerializer < BasicUserSerializer
def unseen_reviewable_count
Reviewable.unseen_reviewable_count(object)
end
def use_experimental_topic_bulk_actions?
scope.user.in_any_groups?(SiteSetting.experimental_topic_bulk_actions_enabled_groups_map)
end
end