FIX: Make category-drop work with lazy_load_categories (#24187)

The category drop was rerendered after every category async change
because it updated the categories list. This is not necessary and
categories can be referenced indirectly by ID instead.
This commit is contained in:
Bianca Nenciu
2023-11-28 17:58:47 +02:00
committed by GitHub
parent 21d614215b
commit e85a81f33c
17 changed files with 165 additions and 63 deletions

View File

@ -1160,6 +1160,7 @@ Discourse::Application.routes.draw do
resources :categories, except: %i[show new edit]
post "categories/reorder" => "categories#reorder"
get "categories/find" => "categories#find"
get "categories/search" => "categories#search"
scope path: "category/:category_id" do