- Do not attempt to get studies metadata if ViewerData already has studies property and use it to view studies in tab (for cases when a tab is opened with metadata externally)
- Add showStudyListTab helper whether to show StudyListTab in worklist template - it is shown by default (it is not shown only if "data.showStudyListTab" is set to false when rendering worklist template)
This commit is contained in:
1 parent
7c64341284
commit
5a680261c7
3 files changed
+92
-64
No files matched your search
@@ -43,6 +43,20 @@ Template.worklist.helpers({
|
||||
*/
|
||||
worklistTabs: function() {
|
||||
return WorklistTabs.find();
|
||||
},
|
||||
showStudyListTab: function() {
|
||||
// StudyListTab is shown by default
|
||||
const instance = Template.instance();
|
||||
if (!instance.data) {
|
||||
return true;
|
||||
}
|
||||
|
||||
var showStudyListTab = instance.data.showStudyListTab;
|
||||
if (showStudyListTab === undefined) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return showStudyListTab;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user