feat: add per-channel disable settings and global settings to channel admin

- Add global settings section (CHANNEL_IS_REQUIRED_SUB, trial/paid toggles)
  at top of AdminChannelSubscriptions page
- Add per-channel disable_trial_on_leave and disable_paid_on_leave toggles
  in each channel card with inline Toggle controls
- Update RequiredChannel type and API request interfaces with new fields
- Add translations for globalSettings and perChannel in en/ru/fa/zh locales
This commit is contained in:
Fringg
2026-02-25 00:24:36 +03:00
parent 5a55892145
commit 48be067d1b
6 changed files with 241 additions and 0 deletions

View File

@@ -1025,6 +1025,21 @@
"submit": "افزودن",
"save": "ذخیره",
"cancel": "لغو"
},
"globalSettings": {
"title": "تنظیمات کانال",
"channelRequired": "الزام عضویت",
"channelRequiredDesc": "کاربران باید در کانال‌ها عضو شوند تا از ربات استفاده کنند",
"disableTrialOnUnsub": "غیرفعال‌سازی آزمایشی هنگام لغو عضویت",
"disableTrialOnUnsubDesc": "لغو دسترسی آزمایشی هنگام لغو عضویت از هر کانال",
"requiredForAll": "اجباری برای همه",
"requiredForAllDesc": "بررسی عضویت برای همه کاربران، از جمله پولی"
},
"perChannel": {
"disableTrial": "غیرفعال‌سازی آزمایشی هنگام خروج",
"disableTrialDesc": "لغو دسترسی آزمایشی هنگام خروج از این کانال",
"disablePaid": "غیرفعال‌سازی پولی هنگام خروج",
"disablePaidDesc": "لغو دسترسی پولی هنگام خروج از این کانال"
}
},
"payments": {