impaktapps-ui-builder 1.0.181 → 1.0.182
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10525,6 +10525,10 @@ const downloadFileStream = async (params2) => {
|
|
|
10525
10525
|
if (!response.ok) {
|
|
10526
10526
|
throw new Error("Download failed");
|
|
10527
10527
|
}
|
|
10528
|
+
params2.store.setNotify({
|
|
10529
|
+
SuccessMessage: "File Download Started Successfully",
|
|
10530
|
+
Success: true
|
|
10531
|
+
});
|
|
10528
10532
|
const fileName = response.headers.get("filename") || "downloaded_file";
|
|
10529
10533
|
const extension = fileName.includes(".") ? fileName.substring(fileName.lastIndexOf(".")) : "";
|
|
10530
10534
|
const reader = response.body.getReader();
|
|
@@ -10548,7 +10552,7 @@ const downloadFileStream = async (params2) => {
|
|
|
10548
10552
|
}
|
|
10549
10553
|
await writable.close();
|
|
10550
10554
|
params2.store.setNotify({
|
|
10551
|
-
SuccessMessage:
|
|
10555
|
+
SuccessMessage: `File "${fileHandle.name}" downloaded successfully.`,
|
|
10552
10556
|
Success: true
|
|
10553
10557
|
});
|
|
10554
10558
|
} catch (e) {
|