Creating a new package to deal with auth and a login form
This commit is contained in:
1 parent
024e590af3
commit
1475fe9ef2
13 files changed
+218
-8
No files matched your search
+4
-4
@@ -11,7 +11,7 @@ Template.longitudinalStudyListStudy.replaces(defaultTemplate);
|
||||
// Add the TimepointName helper to the default template. The
|
||||
// HTML of this template is replaced with that of longitudinalStudyListStudy
|
||||
Template[defaultTemplate].helpers({
|
||||
timepointName: function() {
|
||||
timepointName() {
|
||||
const instance = Template.instance();
|
||||
const timepointApi = OHIF.studylist.timepointApi;
|
||||
if (!timepointApi) {
|
||||
@@ -26,10 +26,10 @@ Template[defaultTemplate].helpers({
|
||||
return timepointApi.name(timepoint);
|
||||
},
|
||||
|
||||
reviewerTip: function() {
|
||||
reviewerTip() {
|
||||
const instance = Template.instance();
|
||||
const timepointApi = OHIF.studylist.timepointApi;
|
||||
if (!timepointApi) {
|
||||
if (!timepointApi || !window.Reviewers) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ Template[defaultTemplate].helpers({
|
||||
return;
|
||||
}
|
||||
|
||||
const timepointReviewers = Reviewers.findOne({ timepointId: timepoint.timepointId });
|
||||
const timepointReviewers = window.Reviewers.findOne({ timepointId: timepoint.timepointId });
|
||||
if (!timepointReviewers) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user