From 6a9e5aee47004e361178e57746f47d24704943f0 Mon Sep 17 00:00:00 2001 From: adonis Date: Sat, 1 Aug 2026 16:45:16 +0330 Subject: [PATCH] fix some setting --- .../menuPages/configuration/settingGroups.ts | 23 +++++++------------ .../menuPages/configuration/settingTypes.ts | 12 ++++++---- 2 files changed, 16 insertions(+), 19 deletions(-) diff --git a/src/pages/menuPages/configuration/settingGroups.ts b/src/pages/menuPages/configuration/settingGroups.ts index aed47fa..d44daf6 100644 --- a/src/pages/menuPages/configuration/settingGroups.ts +++ b/src/pages/menuPages/configuration/settingGroups.ts @@ -91,15 +91,6 @@ export const EDITABLE_SETTING_GROUPS: SettingGroupDef[] = [ || k === 'deposit_sms_support_number' || (k.startsWith('deposit_') && !k.startsWith('external_')), }, - { - id: 'gateway', - title: 'تنظیمات درگاه', - icon: 'vuesax-linear:card-pos', - match: (k) => - k.startsWith('external_payment_') - || k === 'wallet_payment_provider' - || k.startsWith('payping_'), - }, { id: 'bots', title: 'بات‌ها', @@ -189,18 +180,20 @@ export const SYSTEM_SETTING_GROUPS: SettingGroupDef[] = [ icon: 'vuesax-linear:shop', match: (k) => /^node_/.test(k) || k === 'montify_name' || k === 'external_order_api_enabled' }, + { + id: 'gateway', + title: 'درگاه شارژ آنلاین', + icon: 'vuesax-linear:card-pos', + match: (k) => + k.startsWith('external_payment_') + || k === 'wallet_payment_provider' + }, { id: 'payping', title: 'درگاه Payping', icon: 'vuesax-linear:card', match: (k) => k.startsWith('payping_') }, - { - id: 'gateway', - title: 'تنظیمات درگاه', - icon: 'vuesax-linear:card-pos', - match: (k) => k.startsWith('external_payment_') || k === 'wallet_payment_provider' - }, { id: 'accounting_provider', title: 'انتخاب سیستم حسابداری', diff --git a/src/pages/menuPages/configuration/settingTypes.ts b/src/pages/menuPages/configuration/settingTypes.ts index 541fa20..4ae6e7c 100644 --- a/src/pages/menuPages/configuration/settingTypes.ts +++ b/src/pages/menuPages/configuration/settingTypes.ts @@ -1008,6 +1008,14 @@ export const SETTING_LOCKED_KEYS = new Set([ 'bale_bot_token', 'banner_enabled', 'chart_id', 'chart_use_local_data', 'external_order_api_enabled', + 'external_payment_enabled', + 'external_payment_base_url', + 'external_payment_client_id', + 'external_payment_client_secret', + 'external_payment_gateway', + 'external_payment_return_url', + 'external_payment_webhook_url', + 'wallet_payment_provider', 'fee_deduct_from_gold', 'referral_bonus_amount', 'group_sms', @@ -1063,10 +1071,6 @@ export const SETTING_EDITABLE_KEYS = new Set([ 'deposit_sms_support_number', 'deposit_support_message_text', 'deposit_account_holder', 'deposit_card_number', 'deposit_sheba', 'endDay', - 'external_payment_enabled', - 'external_payment_base_url', 'external_payment_client_id', 'external_payment_client_secret', - 'external_payment_gateway', 'external_payment_return_url', 'external_payment_webhook_url', - 'wallet_payment_provider', 'fee_free', 'fee_service_charge_percentage', 'gift_for_referral', 'gift_for_referrer', 'invite_link_text',