applied downloadable checkbox on submit of new appeal

This commit is contained in:
2026-03-16 13:58:02 +00:00
parent 72eafd0a8e
commit 7c84344d5d
9 changed files with 189 additions and 57 deletions
+8 -3
View File
@@ -265,20 +265,25 @@ export const generateAppealPDF = async (
containerID,
casefolderID,
appealType,
fileList
fileList,
options = {}
) => {
Object.assign(formValues, {
"filesList": fileList
});
var queryUrl = "/api/file/generateappealpdf?appealType=" + appealType;
var queryUrl =
"/api/file/generateappealpdf?appealType=" +
appealType +
(options.download ? "&download=true" : "");
const hashedUrl = await buildHashedQueryUrl(queryUrl);
const config = {
method: "post",
url: hashedUrl,
data: formValues
data: formValues,
...(options.download ? { responseType: "blob" } : {})
};
try {