FIX: reliably reorder link in custom sections (#24188)

Two changes were introduced:
1. Reorder links on sidebar section is removed. Clicking and holding the mouse for 250ms was unintuitive;
2. Fixed bugs when reorder is done in edit modal.
This commit is contained in:
Krzysztof Kotlarek
2023-11-02 08:46:45 +11:00
committed by GitHub
parent 1d96b0a99a
commit 1c395e1a01
11 changed files with 34 additions and 232 deletions

View File

@ -1607,7 +1607,6 @@ Discourse::Application.routes.draw do
delete "user-status" => "user_status#clear"
resources :sidebar_sections, only: %i[index create update destroy]
post "/sidebar_sections/reorder" => "sidebar_sections#reorder"
put "/sidebar_sections/reset/:id" => "sidebar_sections#reset"
get "*url", to: "permalinks#show", constraints: PermalinkConstraint.new