Opening series sidebar by default

This commit is contained in:
Bruno Alves de Faria committed 2016-08-20 10:09:31 -03:00
1 parent 0dfb3cc824
commit 479e420179
14 files changed
+68 -48

No files matched your search

@@ -4,14 +4,14 @@
<div class="pull-left m-t-1">
{{>roundedButtonGroup leftSidebarToggleButtonData}}
</div>
{{> toolbarSectionTools
{{>toolbarSectionTools
toolbarButtons=toolbarButtons
extraToolbarButtons=extraToolbarButtons}}
<div class="pull-right m-t-1 rm-x-1">
{{> roundedButtonGroup rightSidebarToggleButtonData}}
{{>roundedButtonGroup rightSidebarToggleButtonData}}
</div>
<div class="pull-right">
{{> toolbarSectionTools toolbarButtons=hangingProtocolButtons}}
{{>toolbarSectionTools toolbarButtons=hangingProtocolButtons}}
</div>
</div>
</div>
@@ -1,4 +1,14 @@
import { OHIF } from 'meteor/ohif:core';
import { Template } from 'meteor/templating';
import { $ } from 'meteor/jquery';
Template.toolbarSection.onCreated(() => {
const instance = Template.instance();
if (OHIF.uiSettings.leftSidebarOpen) {
instance.data.state.set('leftSidebar', 'studies');
}
});
Template.toolbarSection.helpers({
leftSidebarToggleButtonData() {
@@ -122,7 +132,7 @@ Template.toolbarSection.helpers({
classes: 'imageViewerTool toolbarSectionButton',
iconClasses: 'fa fa-circle'
});
buttonData.push({
id: 'wwwcRegion',
title: 'ROI Window',
@@ -165,7 +175,7 @@ Template.toolbarSection.helpers({
iconClasses: 'fa fa-trash'
});
return buttonData;
return buttonData;
},
hangingProtocolButtons() {