fix(Viewer): Set thumbnail to use altImageText for SEG images (#699)

This commit is contained in:
Erik Ziegler 2019-07-22 13:29:12 +02:00 committed by GitHub
parent f547fdf832
commit 163fee8941
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -344,9 +344,14 @@ const _mapStudiesToThumbnails = function(studies) {
} = displaySet;
let imageId;
let altImageText = ' '; // modality
let altImageText;
if (displaySet.images && displaySet.images.length) {
if (displaySet.modality && displaySet.modality === 'SEG') {
// TODO: We want to replace this with a thumbnail showing
// the segmentation map on the image, but this is easier
// and better than what we have right now.
altImageText = 'SEG';
} else if (displaySet.images && displaySet.images.length) {
const imageIndex = Math.floor(displaySet.images.length / 2);
imageId = displaySet.images[imageIndex].getImageId();