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

@@ -1808,7 +1808,7 @@
},
"confirmDelete": {
"title": "Delete user?",
"message": "Are you sure? This action is irreversible. All user data will be deleted."
"message": "Are you sure? This action is irreversible. The user will be fully deleted from the bot and from the Remnawave panel."
},
"confirmResetTrial": {
"title": "Reset trial?",
@@ -1848,6 +1848,10 @@
"subscription": "• Subscription purchase prohibited",
"reason": "Reason"
},
"actions": {
"title": "Actions",
"areYouSure": "Are you sure?"
},
"subscription": {
"current": "Current subscription",
"tariff": "Tariff",