LT-317 the first study should be open by default when loading an unassociated study
This commit is contained in:
parent
cdc5d626dc
commit
820ba1e969
@ -49,6 +49,7 @@ function open(studyInstanceUid, title) {
|
||||
ViewerData[contentid] = {
|
||||
title: title,
|
||||
contentid: contentid,
|
||||
isUnassociatedStudy: true,
|
||||
studyInstanceUids: [studyInstanceUid]
|
||||
};
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user