Adjusting new targets criterion
This commit is contained in:
1 parent
0cb54a1e8c
commit
ef4a8d8684
7 files changed
+27
-12
No files matched your search
+2
-2
@@ -9,8 +9,8 @@
|
||||
{{/if}}
|
||||
<div class="type">{{toolGroup.name}}</div>
|
||||
<div class="max {{#if gt numberOfMeasurements maxNumMeasurements}}warning{{/if}}">
|
||||
{{#if and maxNumMeasurements (eq toolGroup.id 'targets')}}
|
||||
<p class="maxNumMeasurements">Max {{maxNumMeasurements}}</p>
|
||||
{{#if getMax toolGroup.id}}
|
||||
<p class="maxNumMeasurements">Max {{getMax toolGroup.id}}</p>
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="numberOfMeasurements">{{numberOfMeasurements}}</div>
|
||||
|
||||
+6
-2
@@ -9,11 +9,15 @@ Template.measurementTableHeaderRow.helpers({
|
||||
return measurementRows.length ? measurementRows.length : null;
|
||||
},
|
||||
|
||||
maxNumMeasurements() {
|
||||
getMax(toolGroupId) {
|
||||
const { conformanceCriteria } = Template.instance().data;
|
||||
if (!conformanceCriteria) return;
|
||||
|
||||
return conformanceCriteria.maxTargets.get();
|
||||
if (toolGroupId === 'targets') {
|
||||
return conformanceCriteria.maxTargets.get();
|
||||
} else if (toolGroupId === 'newTargets') {
|
||||
return conformanceCriteria.maxNewTargets.get();
|
||||
}
|
||||
},
|
||||
|
||||
anyUnmarkedLesionsLeft() {
|
||||
|
||||
Reference in new issue
Block a user