From ad25749942368111637146ffdd24fbf6d30f7997 Mon Sep 17 00:00:00 2001 From: Maxime Lalo Date: Tue, 26 Sep 2023 16:50:24 +0200 Subject: [PATCH] :sparkles: Fixing download anchoring proof --- src/front/Components/Layouts/Folder/FolderInformation/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/front/Components/Layouts/Folder/FolderInformation/index.tsx b/src/front/Components/Layouts/Folder/FolderInformation/index.tsx index 6407a9f5..c816aeea 100644 --- a/src/front/Components/Layouts/Folder/FolderInformation/index.tsx +++ b/src/front/Components/Layouts/Folder/FolderInformation/index.tsx @@ -283,7 +283,7 @@ class FolderInformationClass extends BasePage { a.style.display = "none"; a.href = url; // the filename you want - a.download = "anchoring_proof.pdf"; + a.download = `anchoring_proof_${this.state.selectedFolder?.folder_number}_${this.state.selectedFolder?.name}.pdf`; document.body.appendChild(a); a.click(); window.URL.revokeObjectURL(url);