Hide Zaarbox key on Montzar and tighten product pricing UI.

Hide zaarbox_price_key when price_provider is montzar, add +/- for fixed melted and manual prices, drop formula on fixed, and remove the show-in-assets switch.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-30 21:35:10 +03:30
co-authored by Cursor
parent 67c701fc9d
commit 589a517ffe
2 changed files with 68 additions and 30 deletions
@@ -253,6 +253,11 @@ export function isSettingVisible(key: string | undefined | null): boolean {
const provider = (priceProviderSetting.value || '').trim().toLowerCase()
if (provider && provider !== 'montzar') return false
}
// شناسه ردیف تابلو فقط برای منبع zaarbox معنی دارد
if (k === 'zaarbox_price_key') {
const provider = (priceProviderSetting.value || '').trim().toLowerCase()
if (provider === 'montzar') return false
}
// تنظیمات قابل‌ویرایش کانال فقط وقتی دسترسی دیپلوی روشن است
if (PRICE_CHANNEL_PANEL_KEYS.has(k) && !priceChannelAccessSetting.value) return false
return true