mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 17:43:47 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user