feat: add subscription reissue button with cooldown timer

- Add revokeSubscription API method
- Add reissue button in Additional Options with amber styling,
  destructive confirm dialog, 15-min cooldown with countdown timer,
  localStorage persistence across page reloads
- Add i18n keys in all 4 locales (en, ru, zh, fa)
This commit is contained in:
Fringg
2026-05-04 17:22:05 +03:00
parent 7d940091fa
commit f7cc445127
6 changed files with 138 additions and 0 deletions

View File

@@ -571,6 +571,14 @@
"selectServersHint": "Select servers to connect or disconnect",
"noServersAvailable": "No servers available to manage"
},
"revoke": {
"title": "Reissue Subscription",
"button": "Reissue Subscription",
"description": "New link, device reset",
"warning": "This will generate a new connection link, reset all connected devices, and invalidate the old link. Continue?",
"confirmBtn": "Reissue",
"cooldown": "Available in {{minutes}} min {{seconds}} sec"
},
"legacy": {
"selectTariffTitle": "Select a tariff to renew",
"selectTariffDescription": "Your current subscription was created before tariffs were introduced. To renew, please select one of the available tariffs.",