mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 17:43:47 +00:00
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:
@@ -540,6 +540,17 @@ export const subscriptionApi = {
|
||||
return response.data;
|
||||
},
|
||||
|
||||
// ── Revoke (reissue) ────────────────────────────────────────────────
|
||||
|
||||
revokeSubscription: async (subscriptionId?: number) => {
|
||||
const response = await apiClient.post(
|
||||
'/cabinet/subscription/revoke',
|
||||
undefined,
|
||||
withSubId(subscriptionId),
|
||||
);
|
||||
return response.data;
|
||||
},
|
||||
|
||||
// ── Daily subscription ──────────────────────────────────────────────
|
||||
|
||||
togglePause: async (
|
||||
|
||||
Reference in New Issue
Block a user