From 0f394962904808a140221dbae063ca5dcf0df36b Mon Sep 17 00:00:00 2001 From: "devin-ai-integration[bot]" <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 29 Apr 2025 12:57:24 -0400 Subject: [PATCH] fix(template): Update mode template to match current implementation (OHI-1833) (#4998) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Alireza Sedghi --- platform/cli/templates/mode/src/index.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/platform/cli/templates/mode/src/index.tsx b/platform/cli/templates/mode/src/index.tsx index 6956ffdad..c3cd36805 100644 --- a/platform/cli/templates/mode/src/index.tsx +++ b/platform/cli/templates/mode/src/index.tsx @@ -1,4 +1,5 @@ -import { initToolGroups, toolbarButtons } from '@ohif/mode-longitudinal'; +import { hotkeys } from '@ohif/core'; +import { initToolGroups, toolbarButtons, moreTools } from '@ohif/mode-longitudinal'; import { id } from './id'; const ohif = { @@ -47,12 +48,13 @@ function modeFactory({ modeConfiguration }) { // Init Default and SR ToolGroups initToolGroups(extensionManager, toolGroupService, commandsManager); - toolbarService.addButtons(toolbarButtons); + toolbarService.addButtons([...toolbarButtons, ...moreTools]); toolbarService.createButtonSection('primary', [ 'measurementSection', 'Zoom', - 'WindowLevel', 'Pan', + 'TrackballRotate', + 'WindowLevel', 'Capture', 'Layout', 'Crosshairs',