feat(toolbox): Refactor Toolbar and Toolbox to enable sections (#4825)
This commit is contained in:
1 parent
86c12246ac
commit
cc5cdfb081
79 files changed
+3527
-2992
No files matched your search
@@ -1,9 +1,7 @@
|
||||
import { id } from './id';
|
||||
import { hotkeys } from '@ohif/core';
|
||||
import initWorkflowSteps from './initWorkflowSteps';
|
||||
import initToolGroups from './initToolGroups';
|
||||
import toolbarButtons from './toolbarButtons';
|
||||
import segmentationButtons from './segmentationButtons';
|
||||
|
||||
const extensionDependencies = {
|
||||
'@ohif/extension-default': '3.7.0-beta.76',
|
||||
@@ -56,7 +54,8 @@ function modeFactory({ modeConfiguration }) {
|
||||
measurementService.clearMeasurements();
|
||||
initToolGroups({ toolNames, Enums, toolGroupService, commandsManager, servicesManager });
|
||||
|
||||
toolbarService.addButtons([...toolbarButtons, ...segmentationButtons]);
|
||||
toolbarService.addButtons(toolbarButtons);
|
||||
|
||||
toolbarService.createButtonSection('secondary', ['ProgressDropdown']);
|
||||
|
||||
// the primary button section is created in the workflow steps
|
||||
|
||||
Reference in new issue
Block a user