Fixing viewport overlay text information
This commit is contained in:
parent
d259affd9a
commit
37e18cfce0
@ -11,12 +11,11 @@ Template.longitudinalViewportOverlay.replaces(defaultTemplate);
|
|||||||
// Add the TimepointName helper to the default template. The
|
// Add the TimepointName helper to the default template. The
|
||||||
// HTML of this template is replaced with that of longitudinalViewportOverlay
|
// HTML of this template is replaced with that of longitudinalViewportOverlay
|
||||||
Template[defaultTemplate].helpers({
|
Template[defaultTemplate].helpers({
|
||||||
timepointName: function() {
|
timepointName() {
|
||||||
const instance = Template.instance();
|
const instance = Template.instance();
|
||||||
const studyInstanceUid = instance.data.studyInstanceUid;
|
const studyInstanceUid = instance.data.studyInstanceUid;
|
||||||
|
|
||||||
// TODO: Find a better way to obtain the timepointApi from the viewer.js template
|
const timepointApi = OHIF.viewer.timepointApi;
|
||||||
const timepointApi = OHIF.studylist.timepointApi;
|
|
||||||
if (!timepointApi) return;
|
if (!timepointApi) return;
|
||||||
|
|
||||||
const timepoints = timepointApi.study(studyInstanceUid);
|
const timepoints = timepointApi.study(studyInstanceUid);
|
||||||
@ -29,7 +28,7 @@ Template[defaultTemplate].helpers({
|
|||||||
return timepointApi.name(timepoint);
|
return timepointApi.name(timepoint);
|
||||||
},
|
},
|
||||||
|
|
||||||
linked: function() {
|
linked() {
|
||||||
const linkedViewports = Session.get('StackImagePositionOffsetSynchronizerLinkedViewports') || [];
|
const linkedViewports = Session.get('StackImagePositionOffsetSynchronizerLinkedViewports') || [];
|
||||||
return (linkedViewports.indexOf(this.viewportIndex) !== -1);
|
return (linkedViewports.indexOf(this.viewportIndex) !== -1);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user