PWV-73 Make study availability reactive
This commit is contained in:
1 parent
66dd8a0cec
commit
277bf94029
3 files changed
+26
-2
No files matched your search
@@ -113,5 +113,14 @@ Template.studyBrowserItem.helpers({
|
||||
// If we have more than two modalities, change the line height to display multiple rows
|
||||
return 'font-size:0.7em;line-height:1.4em;padding-top:0.5em';
|
||||
}
|
||||
},
|
||||
|
||||
studyAvailable() {
|
||||
const { studyInformation } = Template.instance().data;
|
||||
if (!studyInformation) {
|
||||
return;
|
||||
}
|
||||
|
||||
return studyInformation.available;
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user