|
|
@@ -394,16 +394,27 @@ if(orderStartDate != ""){ |
|
|
const result = await Swal.fire( |
|
|
const result = await Swal.fire( |
|
|
{ |
|
|
{ |
|
|
icon: "info", |
|
|
icon: "info", |
|
|
title: "Batch Release", |
|
|
|
|
|
html: `<p>Selected Shop(s): ` + extractedIdsCount.toString() + `</p> |
|
|
|
|
|
<p>Selected Item(s): ` + extractedItemsCount.toString() + `</p>`, |
|
|
|
|
|
|
|
|
title: t("Batch Release"), |
|
|
|
|
|
html: t("Selected Shop(s): ") + extractedIdsCount.toString() + `</p>`+ |
|
|
|
|
|
t("Selected Item(s): ") + extractedItemsCount.toString() + `</p>`, |
|
|
showCancelButton: true, |
|
|
showCancelButton: true, |
|
|
confirmButtonText: "Confirm", |
|
|
|
|
|
cancelButtonText: "Cancel", |
|
|
|
|
|
confirmButtonColor: "#3085d6", |
|
|
|
|
|
|
|
|
confirmButtonText: t("Confirm"), |
|
|
|
|
|
cancelButtonText: t("Cancel"), |
|
|
|
|
|
confirmButtonColor: "#638a01", |
|
|
cancelButtonColor: "#d33" |
|
|
cancelButtonColor: "#d33" |
|
|
}); |
|
|
}); |
|
|
if (result.isConfirmed) { |
|
|
if (result.isConfirmed) { |
|
|
|
|
|
Swal.fire({ |
|
|
|
|
|
title: t("Releasing"), |
|
|
|
|
|
text: t("Please wait"), |
|
|
|
|
|
allowOutsideClick: false, |
|
|
|
|
|
allowEscapeKey: false, |
|
|
|
|
|
showConfirmButton: false, |
|
|
|
|
|
didOpen: () => { |
|
|
|
|
|
Swal.showLoading(); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
await Promise.all(extractedIds.map((id) => releaseDo({ id: id }))); |
|
|
await Promise.all(extractedIds.map((id) => releaseDo({ id: id }))); |
|
|
|
|
|
|
|
|
Swal.fire({ |
|
|
Swal.fire({ |
|
|
|