LT-317 the first study should be open by default when loading an unassociated study
This commit is contained in:
1 parent
cdc5d626dc
commit
820ba1e969
2 files changed
+5
No files matched your search
+4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user