LT-318 Disable Case Progress, Trial, HUD and Measurements panels if the study is not associated

This commit is contained in:
Evren Ozkan authored and Erik Ziegler committed 2016-11-15 08:25:09 +01:00
1 parent 24d3c1bd8a
commit 4dd9ee3f37
7 files changed
+37 -8

No files matched your search

@@ -122,7 +122,14 @@ Template.caseProgress.helpers({
});
Template.caseProgress.events({
'click .js-finish-case'() {
'click .js-finish-case'(event) {
const $this = $(event.currentTarget);
// Stop here if the tool is disabled
if ($this.hasClass('disabled')) {
return;
}
const instance = Template.instance();
switchToTab('studylistTab');
instance.data.measurementApi.storeMeasurements();