Fixing QuickSwitch issue with Additional Timepoints
This commit is contained in:
parent
4c8190e0cc
commit
870ed66013
@ -25,7 +25,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
{{#if and this.currentStudy (not showAdditionalTimepoints)}}
|
{{#if and this.currentStudy (not showAdditionalTimepoints) hasAdditionalTimepoints}}
|
||||||
<div class="studyModality additional">
|
<div class="studyModality additional">
|
||||||
Show additional timepoints
|
Show additional timepoints
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -140,6 +140,13 @@ Template.studyTimepointBrowser.helpers({
|
|||||||
return Template.instance().showAdditionalTimepoints.get();
|
return Template.instance().showAdditionalTimepoints.get();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
hasAdditionalTimepoints() {
|
||||||
|
const instance = Template.instance();
|
||||||
|
const { timepointApi } = instance.data;
|
||||||
|
const allTimepoints = timepointApi && timepointApi.all();
|
||||||
|
return allTimepoints && allTimepoints.length > 1;
|
||||||
|
},
|
||||||
|
|
||||||
// Get the timepoints to be listed
|
// Get the timepoints to be listed
|
||||||
timepoints() {
|
timepoints() {
|
||||||
const instance = Template.instance();
|
const instance = Template.instance();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user