feat: bulk delete subscription + fix sub-rows showing for filtered single subs

- Add "Удалить подписки" action with red trash icon, destructive
  warning dialog (red border, irreversible action notice)
- Fix canExpand: show sub-rows when isMultiTariff && subs > 0
  (was > 1, hiding single filtered subscription results)
- i18n: deleteSubscription action + warning/hint (ru + en)
This commit is contained in:
Fringg
2026-04-24 06:51:21 +03:00
parent 5969c74f92
commit c726d3d74e
4 changed files with 49 additions and 5 deletions

View File

@@ -2040,7 +2040,12 @@
"addBalance": "Add balance",
"assignPromoGroup": "Assign promo group",
"grantSubscription": "Grant subscription",
"setDevices": "Set devices"
"setDevices": "Set devices",
"deleteSubscription": "Delete subscriptions"
},
"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."
},
"params": {
"days": "Number of days",

View File

@@ -3788,7 +3788,12 @@
"addBalance": "Начислить баланс",
"assignPromoGroup": "Назначить промогруппу",
"grantSubscription": "Выдать подписку",
"setDevices": "Изменить устройства"
"setDevices": "Изменить устройства",
"deleteSubscription": "Удалить подписки"
},
"deleteSubscription": {
"warning": "Выбранные подписки будут безвозвратно удалены из бота и панели RemnaWave!",
"hint": "Пользователи потеряют доступ к VPN по удалённым подпискам. Это действие нельзя отменить."
},
"params": {
"days": "Количество дней",