-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MHV-66099 Images page (image download, image layout and format, download alerts) #34706
base: main
Are you sure you want to change the base?
Changes from 1 commit
b9f07c4
cac105a
4f8e5f7
0e5474e
6908321
f9e34b9
cdee184
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,7 @@ const RadiologyImagesList = ({ isTesting }) => { | |
isTesting || false, | ||
); | ||
const [isStudyJobsLoaded, setStudyJobsLoaded] = useState(isTesting || false); | ||
|
||
const [diacomDownload, setDiacomDownload] = useState(false); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The file is called is "dicom" as opposed to "diacom". Can you correct all the instances? |
||
const returnToDetailsPage = useCallback( | ||
() => history.push(`/labs-and-tests/${labId}`), | ||
[history, labId], | ||
|
@@ -112,6 +112,11 @@ const RadiologyImagesList = ({ isTesting }) => { | |
[radiologyDetails, returnToDetailsPage], | ||
); | ||
|
||
const updateDiacomDownload = truth => { | ||
setDiacomDownload(truth); | ||
document.querySelector('#download-banner'); | ||
}; | ||
|
||
const renderImageContent = () => ( | ||
<> | ||
<PrintHeader /> | ||
|
@@ -136,8 +141,8 @@ const RadiologyImagesList = ({ isTesting }) => { | |
VA care team to share them directly. | ||
</p> | ||
<p> | ||
If you want to try to sharing these images yourself, you can download | ||
them as DICOM files in a ZIP folder. | ||
If you want to try sharing these images yourself, you can download them | ||
as DICOM files in a ZIP folder. | ||
</p> | ||
<p>Here’s what to know:</p> | ||
<ul> | ||
|
@@ -160,12 +165,25 @@ const RadiologyImagesList = ({ isTesting }) => { | |
</ul> | ||
<p> | ||
{radiologyDetails?.studyId && ( | ||
<va-link | ||
download | ||
filetype="ZIP folder" | ||
href={`${apiImagingPath}/${radiologyDetails.studyId}/dicom`} | ||
text="Download DICOM files" | ||
/> | ||
<> | ||
<va-banner | ||
id="download-banner" | ||
show-close={false} | ||
headline="Download started" | ||
type="success" | ||
visible={diacomDownload} | ||
> | ||
Check your device’s downloads location for your file. | ||
</va-banner> | ||
<br /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't use |
||
<va-link | ||
download | ||
filetype="ZIP folder" | ||
href={`${apiImagingPath}/${radiologyDetails.studyId}/dicom`} | ||
text="Download DICOM files" | ||
onClick={() => updateDiacomDownload(true)} | ||
/> | ||
</> | ||
)} | ||
</p> | ||
</> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Images aren't shown newest to oldest. Here's the correct wording from the ticket:

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing out this oversight.