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

This commit is contained in:
Emanuel F. Oliveira 2016-11-09 23:35:08 -02:00 committed by Erik Ziegler
parent cdc5d626dc
commit 820ba1e969
2 changed files with 5 additions and 0 deletions

View File

@ -49,6 +49,7 @@ function open(studyInstanceUid, title) {
ViewerData[contentid] = {
title: title,
contentid: contentid,
isUnassociatedStudy: true,
studyInstanceUids: [studyInstanceUid]
};

View File

@ -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