Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/i18n/translations/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -1938,7 +1938,7 @@
},
"errors": {
"requiredField": "حقل مطلوب",
"promotionTabError": "إصلاح الأخطاء في علامة التبويب العرض الترويجي قبل المتابعة"
"promotionTabError": "إصلاح الأخطاء في علامة التبويب تفاصيل العرض الترويجي قبل المتابعة"
},
"toasts": {
"promotionCreateSuccess": "تم إنشاء العرض الترويجي ({{code}}) بنجاح."
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/translations/bg.json
Original file line number Diff line number Diff line change
Expand Up @@ -1954,7 +1954,7 @@
},
"errors": {
"requiredField": "Задължително поле",
"promotionTabError": "Поправете грешките в раздела Промоция преди да продължите"
"promotionTabError": "Поправете грешките в раздела Детайли на промоцията преди да продължите"
},
"toasts": {
"promotionCreateSuccess": "Промоцията ({{code}}) беше създадена успешно."
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/translations/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1916,7 +1916,7 @@
},
"errors": {
"requiredField": "Povinné pole",
"promotionTabError": "Opravte chyby v záložce Propagace před pokračováním"
"promotionTabError": "Opravte chyby v záložce Detaily propagace před pokračováním"
},
"toasts": {
"promotionCreateSuccess": "Propagace ({{code}}) byla úspěšně vytvořena."
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -1804,7 +1804,7 @@
},
"errors": {
"requiredField": "Erforderliches Feld",
"promotionTabError": "Beheben Sie Fehler im Tab „Werbung“, bevor Sie fortfahren"
"promotionTabError": "Beheben Sie Fehler im Tab Werbedetails, bevor Sie fortfahren"
},
"toasts": {
"promotionCreateSuccess": "Aktion ({{code}}) wurde erfolgreich erstellt."
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/translations/el.json
Original file line number Diff line number Diff line change
Expand Up @@ -1938,7 +1938,7 @@
},
"errors": {
"requiredField": "Απαιτούμενο πεδίο",
"promotionTabError": "Διορθώστε τα σφάλματα στην καρτέλα Προώθηση πριν συνεχίσετε"
"promotionTabError": "Διορθώστε τα σφάλματα στην καρτέλα Λεπτομέρειες προώθησης πριν συνεχίσετε"
},
"toasts": {
"promotionCreateSuccess": "Η προώθηση ({{code}}) δημιουργήθηκε με επιτυχία."
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1966,7 +1966,7 @@
},
"errors": {
"requiredField": "Required field",
"promotionTabError": "Fix errors in Promotion Tab before proceeding"
"promotionTabError": "Fix errors in Promotion Details Tab before proceeding"
},
"toasts": {
"promotionCreateSuccess": "Promotion ({{code}}) was successfully created."
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -1804,7 +1804,7 @@
},
"errors": {
"requiredField": "Campo obligatorio",
"promotionTabError": "Corrige los errores en la pestaña de Promoción antes de continuar"
"promotionTabError": "Corrige los errores en la pestaña de Detalles de la promoción antes de continuar"
},
"toasts": {
"promotionCreateSuccess": "La promoción ({{code}}) fue creada correctamente."
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/translations/fa.json
Original file line number Diff line number Diff line change
Expand Up @@ -1916,7 +1916,7 @@
},
"errors": {
"requiredField": "فیلد الزامی",
"promotionTabError": "قبل از ادامه، خطاهای تب تبلیغات را برطرف کنید"
"promotionTabError": "قبل از ادامه، خطاهای تب جزئیات تبلیغات را برطرف کنید"
},
"toasts": {
"promotionCreateSuccess": "تبلیغ ({{code}}) با موفقیت ایجاد شد."
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1806,7 +1806,7 @@
},
"errors": {
"requiredField": "Champ requis",
"promotionTabError": "Corriger les erreurs dans la promotion avant de continuer"
"promotionTabError": "Corriger les erreurs dans l'onglet Détails de la promotion avant de continuer"
},
"toasts": {
"promotionCreateSuccess": "Promotion ({{code}}) a été créée avec succès."
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/translations/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -1806,7 +1806,7 @@
},
"errors": {
"requiredField": "Campo obbligatorio",
"promotionTabError": "Correggi gli errori nella scheda Promozione prima di procedere"
"promotionTabError": "Correggi gli errori nella scheda Dettagli promozione prima di procedere"
},
"toasts": {
"promotionCreateSuccess": "Promozione ({{code}}) creata con successo."
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/translations/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -1830,7 +1830,7 @@
},
"errors": {
"requiredField": "必須項目です",
"promotionTabError": "進む前にプロモーションタブのエラーを修正してください"
"promotionTabError": "進む前にプロモーション詳細タブのエラーを修正してください"
},
"toasts": {
"promotionCreateSuccess": "プロモーション「{{code}}」が正常に作成されました。"
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/translations/mk.json
Original file line number Diff line number Diff line change
Expand Up @@ -1916,7 +1916,7 @@
},
"errors": {
"requiredField": "Задолжително поле",
"promotionTabError": "Поправете ги грешките во картичката Промоција пред да продолжите"
"promotionTabError": "Поправете ги грешките во картичката Детали на промоцијата пред да продолжите"
},
"toasts": {
"promotionCreateSuccess": "промоција ({{code}}) беше успешно креиран."
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/translations/mn.json
Original file line number Diff line number Diff line change
Expand Up @@ -1916,7 +1916,7 @@
},
"errors": {
"requiredField": "Шаардлагатай талбар",
"promotionTabError": "Үргэлжлүүлэхээс өмнө Урамшууллын таб дахь алдаануудыг засна уу"
"promotionTabError": "Үргэлжлүүлэхээс өмнө Урамшууллын дэлгэрэнгүй таб дахь алдаануудыг засна уу"
},
"toasts": {
"promotionCreateSuccess": "Урамшуулал ({{code}}) амжилттай үүсгэгдлээ."
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/translations/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -1804,7 +1804,7 @@
},
"errors": {
"requiredField": "Pole wymagane",
"promotionTabError": "Zanim przejdziesz dalej, napraw błędy w zakładce Promocja"
"promotionTabError": "Zanim przejdziesz dalej, napraw błędy w zakładce Szczegóły promocji"
},
"toasts": {
"promotionCreateSuccess": "Promocja ({{code}}) została pomyślnie utworzona."
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/translations/ptBR.json
Original file line number Diff line number Diff line change
Expand Up @@ -1804,7 +1804,7 @@
},
"errors": {
"requiredField": "Campo obrigatório",
"promotionTabError": "Corrija os erros na aba Promoção antes de continuar"
"promotionTabError": "Corrija os erros na aba Detalhes da promoção antes de continuar"
},
"toasts": {
"promotionCreateSuccess": "Promoção ({{code}}) criada com sucesso."
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/translations/ro.json
Original file line number Diff line number Diff line change
Expand Up @@ -1916,7 +1916,7 @@
},
"errors": {
"requiredField": "Câmp obligatoriu",
"promotionTabError": "Remediați erorile din fila Promoție înainte de a continua"
"promotionTabError": "Remediați erorile din fila Detalii promoție înainte de a continua"
},
"toasts": {
"promotionCreateSuccess": "Promovare ({{code}}) a fost creat cu succes."
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/translations/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -1916,7 +1916,7 @@
},
"errors": {
"requiredField": "Обязательное поле",
"promotionTabError": "Исправьте ошибки на вкладке Акция, прежде чем продолжить"
"promotionTabError": "Исправьте ошибки на вкладке Детали акции, прежде чем продолжить"
},
"toasts": {
"promotionCreateSuccess": "Акция ({{code}}) успешно создана."
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/translations/th.json
Original file line number Diff line number Diff line change
Expand Up @@ -1804,7 +1804,7 @@
},
"errors": {
"requiredField": "ฟิลด์ที่จำเป็น",
"promotionTabError": "แก้ไขข้อผิดพลาดในแท็บโปรโมชั่นก่อนดำเนินการต่อ"
"promotionTabError": "แก้ไขข้อผิดพลาดในแท็บรายละเอียดโปรโมชั่นก่อนดำเนินการต่อ"
},
"toasts": {
"promotionCreateSuccess": "โปรโมชั่น ({{code}}) ถูกสร้างเรียบร้อยแล้ว"
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/translations/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1938,7 +1938,7 @@
},
"errors": {
"requiredField": "Zorunlu alan",
"promotionTabError": "Devam etmeden önce Promosyon Sekmesindeki hataları düzeltin"
"promotionTabError": "Devam etmeden önce Promosyon Detayları Sekmesindeki hataları düzeltin"
},
"toasts": {
"promotionCreateSuccess": "Promosyon ({{code}}) başarıyla oluşturuldu."
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/translations/uk.json
Original file line number Diff line number Diff line change
Expand Up @@ -1865,7 +1865,7 @@
},
"errors": {
"requiredField": "Обов'язкове поле",
"promotionTabError": "Виправте помилки на вкладці Акція перед продовженням"
"promotionTabError": "Виправте помилки на вкладці Деталі акції перед продовженням"
},
"toasts": {
"promotionCreateSuccess": "Акція ({{code}}) була успішно створена."
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/translations/zhCN.json
Original file line number Diff line number Diff line change
Expand Up @@ -1916,7 +1916,7 @@
},
"errors": {
"requiredField": "必填字段",
"promotionTabError": "继续前请修复促销选项卡中的错误"
"promotionTabError": "继续前请修复促销详情选项卡中的错误"
},
"toasts": {
"promotionCreateSuccess": "促销活动 ({{code}}) 创建成功。"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export const CreatePromotionForm = () => {
break
case Tab.PROMOTION: {
const valid =
!!form.getValues("code") ||
!!form.getValues("code") &&
!!form.getValues("application_method.value")

if (valid) {
Expand All @@ -231,13 +231,13 @@ export const CreatePromotionForm = () => {

if (!form.getValues("code")) {
form.setError("code", {
message: "error",
message: t("promotions.errors.requiredField"),
})
}

if (!form.getValues("application_method.value")) {
form.setError("application_method.value", {
message: "error",
message: t("promotions.errors.requiredField"),
})
}

Expand Down Expand Up @@ -601,6 +601,7 @@ export const CreatePromotionForm = () => {
components={[<br key="break" />]}
/>
</Text>
<Form.ErrorMessage />
</Form.Item>
)
}}
Expand Down