LT-254: Display maximum number of target measurements in Lesion Table based on Trial Criteria

This commit is contained in:
Erik Ziegler committed 2016-07-22 11:08:27 +02:00
1 parent a58e237418
commit 7cb8ed6c9f
7 files changed
+84 -39

No files matched your search

@@ -1,8 +1,13 @@
Template.caseProgress.onCreated(function caseProgressOnCreated() {
const instance = Template.instance();
instance.progressPercent = new ReactiveVar();
instance.progressText = new ReactiveVar();
instance.isLocked = new ReactiveVar();
if (!instance.data.currentTimepointId) {
throw 'Case Progress has no timepointId';
console.warn('Case has no timepointId');
return;
}
const currentTimepointId = instance.data.currentTimepointId;
@@ -12,10 +17,6 @@ Template.caseProgress.onCreated(function caseProgressOnCreated() {
const timepointType = timepoint.timepointType;
instance.progressPercent = new ReactiveVar();
instance.progressText = new ReactiveVar();
instance.isLocked = new ReactiveVar();
instance.isLocked.set(timepoint.isLocked);
if (timepointType === 'baseline') {