Skip to content

Commit

Permalink
mhv-65020 moves new txt file function to download page (#33483)
Browse files Browse the repository at this point in the history
Co-authored-by: Mike Moyer <[email protected]>
  • Loading branch information
KolbyVA and mmoyer-va authored Dec 12, 2024
1 parent a709c58 commit 7c8549c
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,13 @@ const DownloadFileType = props => {
setDownloadStarted(true);
dispatch(clearAlerts());
if (isDataFetched) {
const pdfName = `VA-Blue-Button-report-${getNameDateAndTime(user)}`;
const title = 'Blue Button report';
const subject = 'VA Medical Record';
const pdfName = `VA-Blue-Button-report-${getNameDateAndTime(
user,
title,
subject,
)}`;
const content = getTxtContent(recordData, user);

generateTextFile(content, pdfName, user);
Expand Down

0 comments on commit 7c8549c

Please sign in to comment.