Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion modes/segmentation/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ function modeFactory({ modeConfiguration }) {
'Shapes',
]);
toolbarService.createButtonSection('brushToolsSection', ['Brush', 'Eraser', 'Threshold']);
// Making the 'cornerstone.panelTool' the default/first right panel will automaically
// handle the evaluate functions for segmentation panel tools through the toolbox components.
// But since we changed the order, we need to call this here to handle the evaluate functions.
const sectionToolProps = toolbarService.getButtonPropsInButtonSection('segmentationToolbox');
sectionToolProps.forEach(props => toolbarService.handleEvaluateNested(props));

customizationService.setCustomizations({
'panelSegmentation.tableMode': {
Expand Down Expand Up @@ -195,7 +200,7 @@ function modeFactory({ modeConfiguration }) {
props: {
leftPanels: [ohif.leftPanel],
leftPanelResizable: true,
rightPanels: [cornerstone.panelTool, cornerstone.measurements, gradienthealth.form],
rightPanels: [gradienthealth.form, cornerstone.panelTool, cornerstone.measurements],
rightPanelResizable: true,
// leftPanelClosed: true,
viewports: [
Expand Down