Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): mode creation template (#3876) #3981

Merged
merged 1 commit into from
Mar 8, 2024
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions modes/longitudinal/src/index.js
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -272,4 +272,4 @@ const mode = {
};

export default mode;
export { initToolGroups, toolbarButtons };
export { initToolGroups, moreTools, toolbarButtons };
4 changes: 2 additions & 2 deletions platform/cli/templates/mode/src/index.tsx
Original file line number Diff line number Diff line change
@@ -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',
Expand Down Expand Up @@ -78,7 +78,7 @@ function modeFactory({ modeConfiguration }) {
));

toolbarService.init(extensionManager);
toolbarService.addButtons(toolbarButtons);
toolbarService.addButtons([...toolbarButtons, ...moreTools]);
toolbarService.createButtonSection('primary', [
'MeasurementTools',
'Zoom',
Expand Down
Loading