LT-251: Fixing quick switch thumbnails when study is changed
This commit is contained in:
1 parent
a4354efa15
commit
529ef28042
11 files changed
+70
-32
No files matched your search
@@ -4,7 +4,7 @@ Template.lesionTable.onCreated(() => {
|
||||
instance.data.lesionTableLayout = new ReactiveVar('comparison');
|
||||
instance.data.timepoints = new ReactiveVar([]);
|
||||
|
||||
// Run this computation everytime table layout changes
|
||||
// Run this computation every time table layout changes
|
||||
instance.autorun(() => {
|
||||
// Get the current table layout
|
||||
const tableLayout = instance.data.lesionTableLayout.get();
|
||||
@@ -25,7 +25,7 @@ Template.lesionTable.onRendered(() => {
|
||||
const instance = Template.instance();
|
||||
|
||||
instance.autorun(() => {
|
||||
// Run this computation everytime the lesion table layout is changed
|
||||
// Run this computation every time the lesion table layout is changed
|
||||
instance.data.lesionTableLayout.dep.depend();
|
||||
|
||||
if (instance.data.state.get('rightSidebar') !== 'lesions') {
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@
|
||||
<div class="scrollArea">
|
||||
<div class="thumbnailsWrapper">
|
||||
{{#each thumbnail in thumbnailsList}}
|
||||
{{>thumbnailEntry thumbnail=thumbnail viewportIndex=viewportIndex}}
|
||||
{{>thumbnailEntry (extend this thumbnail=thumbnail)}}
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -2,7 +2,10 @@
|
||||
<div class="studyTimepointWrapper">
|
||||
<div class="studyTimepoint">
|
||||
{{#each study in studies}}
|
||||
{{>studyTimepointStudy study=study active=(isActive study) viewportIndex=this.viewportIndex}}
|
||||
{{>studyTimepointStudy (extend this
|
||||
study=study
|
||||
active=(isActive study)
|
||||
)}}
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@
|
||||
{{/if}}
|
||||
{{else}}
|
||||
<div class="p-t-2">
|
||||
{{>studyTimepoint studies=studies viewportIndex=this.viewportIndex currentStudy=this.currentStudy}}
|
||||
{{>studyTimepoint (extend this studies=studies)}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
+2
-2
@@ -44,7 +44,7 @@ Template.studyTimepointBrowser.onRendered(() => {
|
||||
const instance = Template.instance();
|
||||
|
||||
instance.autorun(() => {
|
||||
// Runs this computation everytime the timepointViewType is changed
|
||||
// Runs this computation every time the timepointViewType is changed
|
||||
const type = instance.timepointViewType.get();
|
||||
|
||||
// Removes all active classes to collapse the timepoints and studies
|
||||
@@ -57,7 +57,7 @@ Template.studyTimepointBrowser.onRendered(() => {
|
||||
|
||||
let lastStudy;
|
||||
instance.autorun(() => {
|
||||
// Runs this computation everytime the curenty study is changed
|
||||
// Runs this computation every time the curenty study is changed
|
||||
const currentStudy = instance.data.currentStudy && instance.data.currentStudy.get();
|
||||
|
||||
// Check if the study really changed and update the last study
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@
|
||||
{{#if isSidebar}}
|
||||
<div class="studyTimepointThumbnails">
|
||||
{{#each thumbnail in (studyThumbnails this.study)}}
|
||||
{{>thumbnailEntry thumbnail=thumbnail viewportIndex=viewportIndex}}
|
||||
{{>thumbnailEntry (extend this thumbnail=thumbnail)}}
|
||||
{{/each}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
@@ -6,7 +6,7 @@ Template.toolbarSection.helpers({
|
||||
return;
|
||||
}
|
||||
|
||||
// Run this computation everytime the viewports are updated
|
||||
// Run this computation every time the viewports are updated
|
||||
Session.get('LayoutManagerUpdated');
|
||||
|
||||
return layoutManager.viewportData.length > 1;
|
||||
|
||||
Reference in new issue
Block a user