diff --git a/Packages/lesiontracker/client/components/lesionTracker/lesionTracker.styl b/Packages/lesiontracker/client/components/lesionTracker/lesionTracker.styl index b485769b3..52bcec0ea 100644 --- a/Packages/lesiontracker/client/components/lesionTracker/lesionTracker.styl +++ b/Packages/lesiontracker/client/components/lesionTracker/lesionTracker.styl @@ -67,6 +67,13 @@ $expandedHeight = 160px #worklistTabs height: "calc(100% - %s)" % $topBarHeight + .tab-pane + .viewerContainer + .loadingTextDiv + color: $textSecondaryColor + font-size: 30px + font-weight: 200 + // Override Viewerbase's borders #imageViewerViewports .viewportContainer border: none !important diff --git a/Packages/lesiontracker/client/components/studyDateList/studyDateList.html b/Packages/lesiontracker/client/components/studyDateList/studyDateList.html deleted file mode 100644 index ecb5cff78..000000000 --- a/Packages/lesiontracker/client/components/studyDateList/studyDateList.html +++ /dev/null @@ -1,15 +0,0 @@ - \ No newline at end of file diff --git a/Packages/lesiontracker/client/components/studyDateList/studyDateList.js b/Packages/lesiontracker/client/components/studyDateList/studyDateList.js deleted file mode 100644 index 0be8ced05..000000000 --- a/Packages/lesiontracker/client/components/studyDateList/studyDateList.js +++ /dev/null @@ -1,125 +0,0 @@ -Template.studyDateList.helpers({ - /** - * Returns an array of studies that are related to the current study by patient ID. - * The value for 'selected' for the currently loaded study is set to true, so that - * this becomes the current option in the combo box. - * - * @returns {*} Array of studies that are related to the current study by patient ID - */ - relatedStudies: function() { - // Check which study is currently loaded into the study browser - var currentStudyInBrowser = ViewerStudies.findOne({ - selected: true - }); - - // Find all Timepoint-associated studies which have the same patientId as the currently selected study - var relatedStudies = Studies.find({ - patientId: currentStudyInBrowser.patientId - }, { - sort: { - studyDate: -1 - } - }).fetch(); - - // If no Study / Timepoint associated studies exist, just - // return the list of loaded studies - if (!relatedStudies.length) { - return ViewerStudies.find(); - } - - // Modify the array of related studies so the default option is the currently selected study - relatedStudies.forEach(function(study, index) { - // If the studyInstanceUid matches that of the current study in the browser, - // Set this to 'selected', so that it becomes the default option - if (study.studyInstanceUid === currentStudyInBrowser.studyInstanceUid) { - relatedStudies[index].selected = true; - } - }); - - // Use this array to populate the combo box - return relatedStudies; - }, - timepointName: function() { - var data = this; - var study = Studies.findOne({ - studyInstanceUid: data.studyInstanceUid - }); - - if (!study) { - return; - } - - var timepoint = Timepoints.findOne({ - timepointId: study.timepointId - }); - - if (!timepoint) { - return; - } - - return getTimepointName(timepoint); - } -}); - -Template.studyDateList.events({ - /** - * When the study date selector combo box is changed, we will - * hide the select box, temporarily display a loading sign, and grab - * the selected study. Once the study has been retrieved it is added - * into the ViewerStudies collection and set as selected. This reactively - * populated the thumbnail browser. - * - * @param e The select box change event - */ - 'change select#selectStudyDate': function(e) { - var selectBox = $(e.currentTarget); - var studyInstanceUid = selectBox.val(); - - // Hide the select box - selectBox.css('display', 'none'); - - // Show the loading indicator - var loadingIndicator = selectBox.siblings('.loading'); - loadingIndicator.css('display', 'block'); - - getStudyMetadata(studyInstanceUid, function(study) { - sortStudy(study); - - // Hide the loading indicator - loadingIndicator.css('display', 'none'); - - // Show the select box again - selectBox.css('display', 'block'); - - // Set "Selected" to false for the entire collection - ViewerStudies.update({}, { - $set: { - selected: false - } - }, { - multi: true - }); - - // Check if this study already exists in the ViewerStudies collection - // of loaded studies. If it does, set it's 'selected' value to true. - var existingStudy = ViewerStudies.findOne({ - studyInstanceUid: studyInstanceUid - }); - - if (existingStudy) { - // Set the current finding in the collection to true - ViewerStudies.update(existingStudy._id, { - $set: { - selected: true - } - }); - return; - } - - // If the study does not exist, add the 'selected' key to the object - // with the value True, and insert it into the ViewerStudies Collection - study.selected = true; - ViewerStudies.insert(study); - }); - } -}); diff --git a/Packages/lesiontracker/client/components/studyDateList/studyDateList.styl b/Packages/lesiontracker/client/components/studyDateList/studyDateList.styl deleted file mode 100644 index 04973c8d4..000000000 --- a/Packages/lesiontracker/client/components/studyDateList/studyDateList.styl +++ /dev/null @@ -1,23 +0,0 @@ -.studyDateList - margin: 0 auto 15px - text-align: center - width: 100% - - #selectStudyDate - color: black - background-color: #666 - border-color: #666 - width: 96% - margin: 0 auto - - label - font-weight: normal - color: #666 - float: left - padding-left: 2% - - .loading - display: none - color: white - text-align: center - diff --git a/Packages/lesiontracker/client/components/studyTimepointBrowser/studyTimepoint.html b/Packages/lesiontracker/client/components/studyTimepointBrowser/studyTimepoint.html index 35b94f658..465e6a40f 100644 --- a/Packages/lesiontracker/client/components/studyTimepointBrowser/studyTimepoint.html +++ b/Packages/lesiontracker/client/components/studyTimepointBrowser/studyTimepoint.html @@ -1,8 +1,8 @@