feat: bulk delete subscription protection for active paid subs

Add force_delete_active_paid guard to prevent accidental deletion of
active paid subscriptions. Shows warning with count and requires
explicit checkbox confirmation. Also fixes allVisibleSubscriptionIds
to use filteredUsers and getFilteredSubs to respect trialOnly filter
on subscription sub-rows.
This commit is contained in:
Fringg
2026-04-29 11:48:59 +03:00
parent ae55a18fc9
commit afffab17d3
5 changed files with 150 additions and 65 deletions

View File

@@ -2050,7 +2050,9 @@
},
"deleteSubscription": {
"warning": "Selected subscriptions will be permanently deleted from the bot and RemnaWave panel!",
"hint": "Users will lose VPN access for deleted subscriptions. This action cannot be undone."
"hint": "Users will lose VPN access for deleted subscriptions. This action cannot be undone.",
"activePaidWarning": "{{count}} of {{total}} selected subscriptions are active paid",
"forceDeleteConfirm": "I confirm deletion of active paid subscriptions"
},
"deleteUser": {
"warning": "Selected users will be permanently deleted from the bot! All their subscriptions, balance, and data will be lost!",