feat: add drag-and-drop tariff sorting in admin panel

Implement DnD reorder for tariffs using @dnd-kit, matching the
pattern from AdminPaymentMethods. Add updateOrder API method
and i18n keys for all locales.
This commit is contained in:
Fringg
2026-02-06 16:27:41 +03:00
committed by c0mrade
parent 57a97efa4b
commit ef365db16b
6 changed files with 286 additions and 113 deletions

View File

@@ -1306,6 +1306,9 @@
"confirmDeleteText": "This action cannot be undone. The tariff will be permanently deleted.",
"confirmDeleteWithSubscriptions": "This tariff has {{count}} active subscriptions. After deletion, users will need to select a new tariff when renewing.",
"deleteSuccess": "Tariff deleted successfully",
"saveOrder": "Save order",
"orderSaved": "Order saved",
"dragToReorder": "Drag to reorder",
"days": "days",
"days_one": "{{count}} day",
"days_other": "{{count}} days",