Skip to content

Commit

Permalink
added labelling flow as default in rendercontent param
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijith-trenser committed Feb 3, 2025
1 parent 5f4dec2 commit 2fa630c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
11 changes: 8 additions & 3 deletions extensions/default/src/utils/callInputDialog.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { Input, Dialog, ButtonEnums } from '@ohif/ui';
import { Input, Dialog, ButtonEnums, LabellingFlow } from '@ohif/ui';

/**
*
Expand Down Expand Up @@ -94,7 +94,7 @@ export function callLabelAutocompleteDialog(
callback,
dialogConfig,
labelConfig,
renderContent
renderContent = LabellingFlow
) {
const exclusive = labelConfig ? labelConfig.exclusive : false;
const dropDownItems = labelConfig ? labelConfig.items : [];
Expand Down Expand Up @@ -129,7 +129,12 @@ export function callLabelAutocompleteDialog(
});
}

export function showLabelAnnotationPopup(measurement, uiDialogService, labelConfig, renderContent) {
export function showLabelAnnotationPopup(
measurement,
uiDialogService,
labelConfig,
renderContent = LabellingFlow
) {
const exclusive = labelConfig ? labelConfig.exclusive : false;
const dropDownItems = labelConfig ? labelConfig.items : [];
return new Promise<Map<any, any>>((resolve, reject) => {
Expand Down
5 changes: 1 addition & 4 deletions platform/app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,7 @@ function App({
[I18nextProvider, { i18n }],
[ThemeWrapperNext],
[ThemeWrapper],
[
SystemContextProvider,
{ commandsManager, extensionManager, hotkeysManager, services: servicesManager },
],
[SystemContextProvider, { commandsManager, extensionManager, hotkeysManager, servicesManager }],
[ToolboxProvider],
[ViewportGridProvider, { service: viewportGridService }],
[ViewportDialogProvider, { service: uiViewportDialogService }],
Expand Down

0 comments on commit 2fa630c

Please sign in to comment.