LT-317 the first study should be open by default when loading an unassociated study

This commit is contained in:
Emanuel F. Oliveira authored and Erik Ziegler committed 2016-11-15 08:25:09 +01:00
1 parent cdc5d626dc
commit 820ba1e969
2 files changed
+5

No files matched your search

@@ -2,8 +2,12 @@ import { Template } from 'meteor/templating';
Template.studyTimepoint.onCreated(() => {
const instance = Template.instance();
const data = instance.data;
instance.isActive = {};
if (data.isUnassociatedStudy === true && data.studyInstanceUids.length === 1) {
instance.isActive[data.studyInstanceUids[0]] = true;
}
});
// Initialize the timepoint wrapper max-height to enable CSS transition