mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 02:14:58 +08:00
UX: First pass at edit categories navigation modal for sidebar (#21963)
What this change? We are currently not fully satisfied with the current way to edit the categories and tags that appears in the sidebar where the user is redirected to the tracking preferences tab in the user's profile causing the user to lose context of the current page. In addition, the dropdown to select categories or tags limits the amount of information we can display. Since editing or adding a custom categories section is already using a modal, we have decided to switch editing the categories and tags that appear in the sidebar to use a modal as well. This commit ships a first pass of the edit categories modal such that we can keep the commit small and reviewable. The incomplete nature of the feature is also reflected in the fact that the feature is hidden behind a new `new_edit_sidebar_categories_tags_interface_groups` site setting.
This commit is contained in:

committed by
GitHub

parent
213d9dbe41
commit
fc296b9a81
@ -1827,6 +1827,10 @@ class User < ActiveRecord::Base
|
||||
in_any_groups?(SiteSetting.experimental_new_new_view_groups_map)
|
||||
end
|
||||
|
||||
def new_edit_sidebar_categories_tags_interface_groups_enabled?
|
||||
in_any_groups?(SiteSetting.new_edit_sidebar_categories_tags_interface_groups_map)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def badge_grant
|
||||
|
Reference in New Issue
Block a user