checkpoint
This commit is contained in:
parent
a883a03b28
commit
4ca0e8db3a
|
|
@ -276,10 +276,10 @@ export const formInit = (fm: FMLocal, props: FMProps) => {
|
|||
toast.error(
|
||||
<div className="c-flex c-text-red-600 c-items-center">
|
||||
<AlertTriangle className="c-h-4 c-w-4 c-mr-1" />
|
||||
Save Failed
|
||||
{translate("Save Failed")}
|
||||
{count > 0 &&
|
||||
`, please correct
|
||||
${count} errors`}
|
||||
`, ${translate("please correct")}
|
||||
${count} ${translate("errors")}`}
|
||||
.
|
||||
</div>,
|
||||
{
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ export const toast = {
|
|||
toasting: [] as any[],
|
||||
dismiss: () => {
|
||||
if (!timer.timeout) {
|
||||
console.log(toast.toasting);
|
||||
if (toast.toasting.length > 0) {
|
||||
for (const t of toast.toasting) {
|
||||
sonner.dismiss(t.id);
|
||||
|
|
|
|||
|
|
@ -10,5 +10,8 @@ export const langEn = {
|
|||
"Remove this file ?": "Remove this file ?",
|
||||
"Upload Multiple Files":"Upload Multiple Files",
|
||||
"Back To List": "Back To List",
|
||||
"is required": "is required"
|
||||
"is required": "is required",
|
||||
"Save Failed": "Save Failed",
|
||||
"please correct": "please correct",
|
||||
"errors": "errors"
|
||||
};
|
||||
|
|
|
|||
|
|
@ -13,4 +13,7 @@ export const langId: Record<LangKeyword, string> = {
|
|||
"Upload Multiple Files": "Unggah Beberapa File",
|
||||
"Back To List": "Kembali ke List",
|
||||
"is required": "harus diisi",
|
||||
"Save Failed": "Gagal Menyimpan",
|
||||
"please correct": "mohon benahi",
|
||||
"errors": "kesalahan berikut"
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue