fix pargar transaction 2

This commit is contained in:
2026-10-21 11:12:29 +03:30
parent 30dbb1892d
commit 1490adfb60
4 changed files with 8 additions and 252 deletions
+5 -1
View File
@@ -386,6 +386,7 @@ const KEY_TYPE_FALLBACK: Record<string, SettingFieldType> = {
support_messengers: 'longtext',
show_to_users_chat: 'switch',
has_landing: 'switch',
has_charts: 'switch',
has_chat: 'switch',
landing_site: 'longtext',
landing_header: 'longtext',
@@ -803,6 +804,8 @@ const KEY_HELP_FALLBACK: Record<string, string> = {
'روشن: قابلیت چت پشتیبانی برای این دیپلوی فعال است (منوی ادمین و پیش‌نیاز نمایش به کاربر). خاموش: چت در ادمین و اپ کاربر مخفی است و سوییچ «چت پشتیبانی» (has_chat) از تنظیمات عادی هم برداشته می‌شود.',
has_landing:
'روشن: منوی تنظیمات وبسایت در ادمین و تنظیمات لندینگ برای اپ کاربر فعال است. خاموش: منو مخفی است.',
has_charts:
'روشن: بخش نمودارها در اپلیکیشن فعال است. خاموش: نمودارها غیرفعال هستند.',
landing_site: 'محتوای تنظیمات کلی لندینگ وبسایت.',
landing_header: 'محتوای هدر و ناوبری لندینگ.',
landing_hero: 'محتوای سکشن هیرو لندینگ.',
@@ -1103,6 +1106,7 @@ export const KEY_LABEL_FALLBACK: Record<string, string> = {
support_messengers: 'پیام‌رسان‌های پشتیبانی',
show_to_users_chat: 'نمایش چت به کاربران',
has_landing: 'لندینگ وبسایت',
has_charts: 'نمودارها',
has_chat: 'چت پشتیبانی',
landing_site: 'تنظیمات کلی سایت',
landing_header: 'هدر و ناوبری',
@@ -1206,7 +1210,7 @@ export const SETTING_LOCKED_KEYS = new Set([
'unit',
'wss_enabled',
'zaarbox_api_url',
'show_to_users_chat', 'has_landing', 'chat_api', 'chat_api_key', 'chat_upload_url', 'chat_download_url'
'show_to_users_chat', 'has_landing', 'has_charts', 'chat_api', 'chat_api_key', 'chat_upload_url', 'chat_download_url'
])
/** قابل ویرایش در پنل — هم‌تراز deploy_settings_const.sql */
+1 -1
View File
@@ -22,7 +22,7 @@ export const KHANEGI_SYSTEM_SETTING_GROUPS: SettingGroupDef[] = [
title: 'دسترسی مشتری به قابلیت‌ها',
icon: 'TeamOutlined',
match: (k) =>
/^(enable_automation|enable_conditional_order|enable_product_funds|has_page_price_trigger|has_page_notification|has_page_gift_card|enable_customer_level_profit|banner_enabled|jibit_enabled|customer_direct_sms|has_page_earn_money|group_sms|customer_special_pricing|enable_gold_credit|tracking_systems_enabled|permision__enabled|show_to_users_chat|has_landing)$/.test(
/^(enable_automation|enable_conditional_order|enable_product_funds|has_page_price_trigger|has_page_notification|has_page_gift_card|enable_customer_level_profit|banner_enabled|jibit_enabled|customer_direct_sms|has_page_earn_money|group_sms|customer_special_pricing|enable_gold_credit|tracking_systems_enabled|permision__enabled|show_to_users_chat|has_landing|has_charts)$/.test(
k,
),
},
+1
View File
@@ -11,6 +11,7 @@ export const SUPERADMIN_SYSTEM_SETTING_KEYS = new Set<string>([
"enable_gold_credit",
"enable_product_funds",
"group_sms",
"has_charts",
"has_landing",
"has_page_earn_money",
"has_page_gift_card",