LT-299: Opening Measurement Table for associated study as a default
This commit is contained in:
parent
4d0f65ca9a
commit
5a9379e6c3
@ -21,6 +21,17 @@ Template.viewerMain.onRendered(() => {
|
||||
const parentElement = instance.$('#layoutManagerTarget').get(0);
|
||||
window.layoutManager = new LayoutManager(parentElement, studies);
|
||||
|
||||
// Toggle Measurement Table
|
||||
// Show as default for Associated Studies
|
||||
if(studies.length > 1) {
|
||||
// Session.set('rightSidebar', 'measurements');
|
||||
instance.data.state.set('rightSidebar', 'measurements');
|
||||
}
|
||||
// Hide as default for single study
|
||||
else {
|
||||
instance.data.state.set('rightSidebar', null);
|
||||
}
|
||||
|
||||
ProtocolEngine = new HP.ProtocolEngine(window.layoutManager, studies);
|
||||
HP.setEngine(ProtocolEngine);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user