diff --git a/modes/longitudinal/src/index.js b/modes/longitudinal/src/index.js index 8cca53bc527..0d9be56af58 100644 --- a/modes/longitudinal/src/index.js +++ b/modes/longitudinal/src/index.js @@ -1,10 +1,10 @@ import { hotkeys } from '@ohif/core'; -import toolbarButtons from './toolbarButtons'; +import i18n from 'i18next'; import { id } from './id'; import initToolGroups from './initToolGroups'; import moreTools from './moreTools'; import moreToolsMpr from './moreToolsMpr'; -import i18n from 'i18next'; +import toolbarButtons from './toolbarButtons'; // Allow this mode by excluding non-imaging modalities such as SR, SEG // Also, SM is not a simple imaging modalities, so exclude it. @@ -272,4 +272,4 @@ const mode = { }; export default mode; -export { initToolGroups, toolbarButtons }; +export { initToolGroups, moreTools, toolbarButtons }; diff --git a/platform/cli/templates/mode/src/index.tsx b/platform/cli/templates/mode/src/index.tsx index 2d63d106182..55be0603939 100644 --- a/platform/cli/templates/mode/src/index.tsx +++ b/platform/cli/templates/mode/src/index.tsx @@ -1,6 +1,6 @@ import { hotkeys } from '@ohif/core'; +import { initToolGroups, moreTools, toolbarButtons } from '@ohif/mode-longitudinal'; import { id } from './id'; -import { initToolGroups, toolbarButtons } from '@ohif/mode-longitudinal'; const ohif = { layout: '@ohif/extension-default.layoutTemplateModule.viewerLayout', @@ -78,7 +78,7 @@ function modeFactory({ modeConfiguration }) { )); toolbarService.init(extensionManager); - toolbarService.addButtons(toolbarButtons); + toolbarService.addButtons([...toolbarButtons, ...moreTools]); toolbarService.createButtonSection('primary', [ 'MeasurementTools', 'Zoom',