feat: add gift subscription toggle to admin branding settings

Add CABINET_GIFT_ENABLED toggle in Admin Settings > Branding > Interface Options,
alongside existing fullscreen and email auth toggles. Includes updateGiftEnabled
API method and i18n keys for all 4 locales (ru/en/zh/fa).
This commit is contained in:
Fringg
2026-03-09 20:56:42 +03:00
parent 6ea1de2e8a
commit 9542607832
6 changed files with 40 additions and 0 deletions

View File

@@ -265,6 +265,14 @@ export const brandingApi = {
}
},
// Update gift enabled (admin only)
updateGiftEnabled: async (enabled: boolean): Promise<GiftEnabled> => {
const response = await apiClient.patch<GiftEnabled>('/cabinet/branding/gift-enabled', {
enabled,
});
return response.data;
},
// Get analytics counters (public, no auth required)
getAnalyticsCounters: async (): Promise<AnalyticsCounters> => {
try {