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] = {
|
ViewerData[contentid] = {
|
||||||
title: title,
|
title: title,
|
||||||
contentid: contentid,
|
contentid: contentid,
|
||||||
|
isUnassociatedStudy: true,
|
||||||
studyInstanceUids: [studyInstanceUid]
|
studyInstanceUids: [studyInstanceUid]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -2,8 +2,12 @@ import { Template } from 'meteor/templating';
|
|||||||
|
|
||||||
Template.studyTimepoint.onCreated(() => {
|
Template.studyTimepoint.onCreated(() => {
|
||||||
const instance = Template.instance();
|
const instance = Template.instance();
|
||||||
|
const data = instance.data;
|
||||||
|
|
||||||
instance.isActive = {};
|
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
|
// Initialize the timepoint wrapper max-height to enable CSS transition
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user