LT-349: Measurement panel should be opened by default for associated studies
This commit is contained in:
parent
d3ccb30764
commit
3fb1c7ad70
@ -569,6 +569,7 @@ HP.ProtocolEngine = class ProtocolEngine {
|
||||
// Loop through each viewport
|
||||
stageModel.viewports.forEach((viewport, viewportIndex) => {
|
||||
var details = this.matchImages(viewport);
|
||||
|
||||
this.matchDetails[viewportIndex] = details;
|
||||
|
||||
// Convert any YES/NO values into true/false for Cornerstone
|
||||
@ -625,7 +626,7 @@ HP.ProtocolEngine = class ProtocolEngine {
|
||||
currentPosition++;
|
||||
}
|
||||
|
||||
if (currentMatch.imageId) {
|
||||
if (currentMatch && currentMatch.imageId) {
|
||||
currentViewportData.studyInstanceUid = currentMatch.studyInstanceUid;
|
||||
currentViewportData.seriesInstanceUid = currentMatch.seriesInstanceUid;
|
||||
currentViewportData.sopInstanceUid = currentMatch.sopInstanceUid;
|
||||
|
||||
@ -23,8 +23,7 @@ Template.viewerMain.onRendered(() => {
|
||||
|
||||
// Toggle Measurement Table
|
||||
// Show as default for Associated Studies
|
||||
if(studies.length > 1) {
|
||||
// Session.set('rightSidebar', 'measurements');
|
||||
if(instance.data.currentTimepointId) {
|
||||
instance.data.state.set('rightSidebar', 'measurements');
|
||||
}
|
||||
// Hide as default for single study
|
||||
|
||||
Loading…
Reference in New Issue
Block a user