feat: move user action buttons to detail page and fix full delete

- Add fullDeleteUser API method calling DELETE /admin/users/{id}/full
- Add Reset trial, Reset subscription, Disable, Delete buttons to AdminUserDetail info tab
- Implement inline confirm pattern (click → "Are you sure?" → execute, 3s timeout)
- Delete now calls /full endpoint removing user from bot DB and Remnawave panel
- Remove UserActionsMenu dropdown, ConfirmationModal and related code from AdminUsers list
- Update delete confirmation text in ru/en locales to reflect full deletion
This commit is contained in:
Fringg
2026-02-07 00:48:56 +03:00
parent 9e91b67660
commit 2490399f8e
5 changed files with 180 additions and 321 deletions

View File

@@ -2335,7 +2335,7 @@
},
"confirmDelete": {
"title": "Удалить пользователя?",
"message": "Вы уверены? Это действие необратимо. Все данные пользователя будут удалены."
"message": "Вы уверены? Это действие необратимо. Пользователь будет полностью удалён из бота и из панели Remnawave."
},
"confirmResetTrial": {
"title": "Сбросить триал?",
@@ -2375,6 +2375,10 @@
"subscription": "• Запрет покупки подписки",
"reason": "Причина"
},
"actions": {
"title": "Действия",
"areYouSure": "Уверены?"
},
"subscription": {
"current": "Текущая подписка",
"tariff": "Тариф",