fix(settings): show Montzar keys when price_provider is empty
Regular settings hid all montzar_* unless price_provider was already loaded as montzar, so search only found referral_gift_buy_from_montzar. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -488,8 +488,9 @@ async function initConfig() {
|
||||
applySupportChatMenuEnabledFromRows(baseData.value)
|
||||
applyGroupSmsFromRows(baseData.value)
|
||||
applyCustomerSpecialPricingFromRows(baseData.value)
|
||||
// در صفحهٔ عادی price_provider و show_to_users_chat و price_channel_access (can_edit=0) نیستند — از کل تنظیمات بخوان
|
||||
// صفحهٔ عادی price_provider ندارد (can_edit=0) — همیشه از get_settings کامل بخوان
|
||||
if (
|
||||
!isSystemMode.value ||
|
||||
!baseData.value.some((row) => row.key === 'price_provider') ||
|
||||
!baseData.value.some((row) => row.key === 'show_to_users_chat') ||
|
||||
!baseData.value.some((row) => row.key === 'price_channel_access') ||
|
||||
|
||||
Reference in New Issue
Block a user