fix(admin): title و subtitle در تعریف هیرو — ویرایش تیتر اصلی روی /en متن فارسی را بازنویسی میکرد
تیتر و زیرتیتر هیرو درجا ویرایش میشوند اما در فهرست فیلدهای موجودیت هیرو
تعریف نشده بودند؛ isTranslatable('hero','title') false برمیگشت، کلید به
title_en نگاشت نمیشد و PATCH ستون فارسی را پر میکرد — با زبان ویرایش
انگلیسی هم. مقادیر خرابشدهٔ ستون فارسی از پشتیبان شبانه بازگردانی شد.
This commit is contained in:
@@ -216,7 +216,9 @@ export const ENTITIES: Record<string, EntityConfig> = {
|
|||||||
hero: {
|
hero: {
|
||||||
resource: 'hero', dataKey: 'hero', title: 'تنظیمات هیرو', kind: 'singleton',
|
resource: 'hero', dataKey: 'hero', title: 'تنظیمات هیرو', kind: 'singleton',
|
||||||
titleKey: 'title',
|
titleKey: 'title',
|
||||||
fields: [F('title_highlight', 'واژه مسیِ تیتر'), F('badge_value', 'عدد کارت کنار'), F('badge_label', 'متن کارت کنار', 'textarea'), F('cta_primary_label', 'متن دکمه اصلی'), F('cta_primary_href', 'لینک دکمه اصلی', 'text', undefined, true), F('cta_secondary_label', 'متن دکمه دوم'), F('cta_secondary_href', 'لینک دکمه دوم', 'text', undefined, true), F('scroll_label', 'متن اسکرول'), F('kicker', 'متن بالای تیتر', 'textarea')],
|
// title و subtitle باید در فهرست باشند — تیتر و زیرتیتر درجا ویرایش میشوند و
|
||||||
|
// نبودشان یعنی isTranslatable false برمیگرداند و ویرایش روی /en متن فارسی را بازنویسی میکرد
|
||||||
|
fields: [F('title', 'تیتر اصلی'), F('title_highlight', 'واژه مسیِ تیتر'), F('subtitle', 'زیرتیتر', 'textarea'), F('kicker', 'متن بالای تیتر', 'textarea'), F('badge_value', 'عدد کارت کنار'), F('badge_label', 'متن کارت کنار', 'textarea'), F('cta_primary_label', 'متن دکمه اصلی'), F('cta_primary_href', 'لینک دکمه اصلی', 'text', undefined, true), F('cta_secondary_label', 'متن دکمه دوم'), F('cta_secondary_href', 'لینک دکمه دوم', 'text', undefined, true), F('scroll_label', 'متن اسکرول')],
|
||||||
defaults: {},
|
defaults: {},
|
||||||
},
|
},
|
||||||
'page-heroes': {
|
'page-heroes': {
|
||||||
|
|||||||
Reference in New Issue
Block a user