FEATURE: the ability to change the order of flags (#27269)

Continued work on moderate flags UI.
In this PR admins are allowed to change the order of flags. The notify user flag is always on top but all other flags can be moved.
This commit is contained in:
Krzysztof Kotlarek
2024-06-05 13:27:06 +10:00
committed by GitHub
parent c1ecbb8d28
commit aa88b07640
21 changed files with 352 additions and 11 deletions

View File

@ -164,6 +164,8 @@ task "javascript:update_constants" => :environment do
export const MAX_NOTIFICATIONS_LIMIT_PARAMS = #{NotificationsController::INDEX_LIMIT};
export const TOPIC_VISIBILITY_REASONS = #{Topic.visibility_reasons.to_json};
export const SYSTEM_FLAG_IDS = #{PostActionType.types.to_json}
JS
pretty_notifications = Notification.types.map { |n| " #{n[0]}: #{n[1]}," }.join("\n")