fix(Viewer): Set thumbnail to use altImageText for SEG images (#699)
This commit is contained in:
parent
f547fdf832
commit
163fee8941
@ -344,9 +344,14 @@ const _mapStudiesToThumbnails = function(studies) {
|
|||||||
} = displaySet;
|
} = displaySet;
|
||||||
|
|
||||||
let imageId;
|
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);
|
const imageIndex = Math.floor(displaySet.images.length / 2);
|
||||||
|
|
||||||
imageId = displaySet.images[imageIndex].getImageId();
|
imageId = displaySet.images[imageIndex].getImageId();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user