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
|
// Loop through each viewport
|
||||||
stageModel.viewports.forEach((viewport, viewportIndex) => {
|
stageModel.viewports.forEach((viewport, viewportIndex) => {
|
||||||
var details = this.matchImages(viewport);
|
var details = this.matchImages(viewport);
|
||||||
|
|
||||||
this.matchDetails[viewportIndex] = details;
|
this.matchDetails[viewportIndex] = details;
|
||||||
|
|
||||||
// Convert any YES/NO values into true/false for Cornerstone
|
// Convert any YES/NO values into true/false for Cornerstone
|
||||||
@ -625,7 +626,7 @@ HP.ProtocolEngine = class ProtocolEngine {
|
|||||||
currentPosition++;
|
currentPosition++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (currentMatch.imageId) {
|
if (currentMatch && currentMatch.imageId) {
|
||||||
currentViewportData.studyInstanceUid = currentMatch.studyInstanceUid;
|
currentViewportData.studyInstanceUid = currentMatch.studyInstanceUid;
|
||||||
currentViewportData.seriesInstanceUid = currentMatch.seriesInstanceUid;
|
currentViewportData.seriesInstanceUid = currentMatch.seriesInstanceUid;
|
||||||
currentViewportData.sopInstanceUid = currentMatch.sopInstanceUid;
|
currentViewportData.sopInstanceUid = currentMatch.sopInstanceUid;
|
||||||
|
|||||||
@ -23,8 +23,7 @@ Template.viewerMain.onRendered(() => {
|
|||||||
|
|
||||||
// Toggle Measurement Table
|
// Toggle Measurement Table
|
||||||
// Show as default for Associated Studies
|
// Show as default for Associated Studies
|
||||||
if(studies.length > 1) {
|
if(instance.data.currentTimepointId) {
|
||||||
// Session.set('rightSidebar', 'measurements');
|
|
||||||
instance.data.state.set('rightSidebar', 'measurements');
|
instance.data.state.set('rightSidebar', 'measurements');
|
||||||
}
|
}
|
||||||
// Hide as default for single study
|
// Hide as default for single study
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user