Bug fixing: visual indicators to indicate active timepoints in viewports in timepoint headers
This commit is contained in:
parent
51ff40dd6d
commit
e248f9ec7a
@ -231,16 +231,19 @@ Tracker.autorun(function () {
|
||||
|
||||
$("#"+contentId+" .imageViewerViewport").each(function(viewportIndex, element) {
|
||||
var enabledElement = cornerstone.getEnabledElement(element);
|
||||
var imageId = enabledElement.image.imageId;
|
||||
var study = cornerstoneTools.metaData.get('study', imageId);
|
||||
var studyDate = study.studyDate;
|
||||
var patientId = study.patientId;
|
||||
loadedStudyDates.patientId = patientId;
|
||||
// Check studyDate is added before
|
||||
if (loadedStudyDates.dates.indexOf(studyDate) < 0) {
|
||||
loadedStudyDates.dates.push(studyDate);
|
||||
}
|
||||
if(enabledElement && enabledElement.image){
|
||||
var imageId = enabledElement.image.imageId;
|
||||
var study = cornerstoneTools.metaData.get('study', imageId);
|
||||
var studyDate = study.studyDate;
|
||||
var patientId = study.patientId;
|
||||
loadedStudyDates.patientId = patientId;
|
||||
// Check studyDate is added before
|
||||
if (loadedStudyDates.dates.indexOf(studyDate) < 0) {
|
||||
loadedStudyDates.dates.push(studyDate);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
// If study date is loaded into viewport, set timepointLoaded property in Timepoints collection as true
|
||||
|
||||
@ -47,6 +47,9 @@ Package.onUse(function (api) {
|
||||
api.addFiles('components/studyDateList/studyDateList.styl', 'client');
|
||||
api.addFiles('components/studyDateList/studyDateList.js', 'client');
|
||||
|
||||
api.addFiles('components/timepointTextDialog/timepointTextDialog.html', 'client');
|
||||
api.addFiles('components/timepointTextDialog/timepointTextDialog.styl', 'client');
|
||||
|
||||
// Server functions
|
||||
api.addFiles('server/collections.js', 'server');
|
||||
api.addFiles('server/removeCollections.js', ['server']);
|
||||
@ -58,7 +61,6 @@ Package.onUse(function (api) {
|
||||
// Library functions
|
||||
api.addFiles('lib/uuid.js', 'client');
|
||||
|
||||
|
||||
api.export('Measurements', ['client', 'server']);
|
||||
api.export('Timepoints', ['client', 'server']);
|
||||
});
|
||||
Loading…
Reference in New Issue
Block a user