FEATURE: Use new topic bulk actions menu for all sites (#28003)

This commit promotes the new topic bulk action
menu introduced in 89883b2f51d2c484a3d8371060171d03d35bc978
to the main method of bulk selecting and performing
actions on topics. The site setting flag gating this
feature is deleted, and the old bulk select code is
deleted as well.

The new modal shows a loading spinner while operations
are taking place, allows selecting the action from a dropdown
instead of having a 2-step modal flow,
and also supports additional options for some operations, e.g.
allowing Close silently.
This commit is contained in:
Martin Brennan
2024-07-23 11:39:27 +10:00
committed by GitHub
parent a027ec4663
commit 0b413e2aa1
23 changed files with 34 additions and 928 deletions

View File

@ -72,7 +72,6 @@ class CurrentUserSerializer < BasicUserSerializer
:sidebar_category_ids,
:sidebar_sections,
:new_new_view_enabled?,
:use_experimental_topic_bulk_actions?,
:use_admin_sidebar,
:can_view_raw_email,
:use_glimmer_topic_list?,
@ -323,10 +322,6 @@ class CurrentUserSerializer < BasicUserSerializer
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
def can_view_raw_email
scope.user.in_any_groups?(SiteSetting.view_raw_email_allowed_groups_map)
end