LT-318 Disable Case Progress, Trial, HUD and Measurements panels if the study is not associated
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user