docs(faq): FAQ and Segmentation Mode Fix for some studies (#3762)

This commit is contained in:
Alireza authored and GitHub committed 2023-11-03 12:19:24 -04:00
1 parent f9f16bc69f
commit ee67bcc0f5
29 files changed
+321 -96

No files matched your search

+9 -2
View File
@@ -120,9 +120,16 @@ function modeFactory({ modeConfiguration }) {
},
/**
* A boolean return value that indicates whether the mode is valid for the
* modalities of the selected studies. For instance a PET/CT mode should be
* modalities of the selected studies. Currently we don't have stack viewport
* segmentations and we should exclude them
*/
isValidMode: ({ modalities }) => true,
isValidMode: ({ modalities }) => {
if (modalities.length === 1) {
return !['SM', 'US', 'MG', 'OT', 'DOC', 'CR'].includes(modalities[0]);
}
return true;
},
/**
* Mode Routes are used to define the mode's behavior. A list of Mode Route
* that includes the mode's path and the layout to be used. The layout will