Fixing download anchoring proof

This commit is contained in:
Maxime Lalo 2023-09-26 16:50:24 +02:00
parent 5f0b165e6b
commit ad25749942

View File

@ -283,7 +283,7 @@ class FolderInformationClass extends BasePage<IPropsClass, IState> {
a.style.display = "none"; a.style.display = "none";
a.href = url; a.href = url;
// the filename you want // 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); document.body.appendChild(a);
a.click(); a.click();
window.URL.revokeObjectURL(url); window.URL.revokeObjectURL(url);