Skip to content
Open
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
42 changes: 22 additions & 20 deletions extensions/default/src/ViewerLayout/ViewerHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,26 +97,28 @@ function ViewerHeader({ appConfig }: withAppTypes<{ appConfig: AppTypes.Config }
)
}
UndoRedo={
<div className="text-primary flex cursor-pointer items-center">
<Button
variant="ghost"
className="hover:bg-muted"
onClick={() => {
commandsManager.run('undo');
}}
>
<Icons.Undo className="" />
</Button>
<Button
variant="ghost"
className="hover:bg-muted"
onClick={() => {
commandsManager.run('redo');
}}
>
<Icons.Redo className="" />
</Button>
</div>
!appConfig?.hideUndoRedo && (
<div className="text-primary flex cursor-pointer items-center">
<Button
variant="ghost"
className="hover:bg-muted"
onClick={() => {
commandsManager.run('undo');
}}
>
<Icons.Undo className="" />
</Button>
<Button
variant="ghost"
className="hover:bg-muted"
onClick={() => {
commandsManager.run('redo');
}}
>
<Icons.Redo className="" />
</Button>
</div>
)
}
Comment thread
greptile-apps[bot] marked this conversation as resolved.
>
<div className="relative flex justify-center gap-[4px]">
Expand Down
1 change: 1 addition & 0 deletions platform/app/public/config/aws.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ window.config = {
extensions: [],
modes: [],
showStudyList: true,
hideUndoRedo: false,
// below flag is for performance reasons, but it might not work for all servers

showWarningMessageForCrossOrigin: true,
Expand Down
1 change: 1 addition & 0 deletions platform/app/public/config/customization.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ window.config = {
extensions: [],
modes: ['@ohif/mode-test'],
showStudyList: true,
hideUndoRedo: false,
// below flag is for performance reasons, but it might not work for all servers
maxNumberOfWebWorkers: 3,
showWarningMessageForCrossOrigin: false,
Expand Down
1 change: 1 addition & 0 deletions platform/app/public/config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ window.config = {
modes: [],
customizationService: {},
showStudyList: true,
hideUndoRedo: false,
// some windows systems have issues with more than 3 web workers
maxNumberOfWebWorkers: 3,
// below flag is for performance reasons, but it might not work for all servers
Expand Down
1 change: 1 addition & 0 deletions platform/app/public/config/default_16bit.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ window.config = {
// helloPage: '@ohif/extension-default.customizationModule.helloPage',
},
showStudyList: true,
hideUndoRedo: false,
// some windows systems have issues with more than 3 web workers
maxNumberOfWebWorkers: 3,
// below flag is for performance reasons, but it might not work for all servers
Expand Down
1 change: 1 addition & 0 deletions platform/app/public/config/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ window.config = {
modes: [],
extensions: [],
showStudyList: true,
hideUndoRedo: false,
// below flag is for performance reasons, but it might not work for all servers
showWarningMessageForCrossOrigin: true,
strictZSpacingForVolumeViewport: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
window.config = {
routerBasename: null,
showStudyList: true,
hideUndoRedo: false,
extensions: [],
modes: [],
// below flag is for performance reasons, but it might not work for all servers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
window.config = {
routerBasename: null,
showStudyList: true,
hideUndoRedo: false,
extensions: [],
modes: [],
// below flag is for performance reasons, but it might not work for all servers
Expand Down
1 change: 1 addition & 0 deletions platform/app/public/config/dicomweb-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ window.config = {
extensions: [],
modes: [],
showStudyList: true,
hideUndoRedo: false,
// below flag is for performance reasons, but it might not work for all servers
showWarningMessageForCrossOrigin: true,
showCPUFallbackMessage: true,
Expand Down
1 change: 1 addition & 0 deletions platform/app/public/config/dicomweb_relative.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ window.config = {
extensions: [],
modes: [],
showStudyList: true,
hideUndoRedo: false,
maxNumberOfWebWorkers: 3,
// below flag is for performance reasons, but it might not work for all servers
showWarningMessageForCrossOrigin: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
window.config = {
routerBasename: '/ohif-viewer/',
showStudyList: true,
hideUndoRedo: false,
extensions: [],
modes: [],
// below flag is for performance reasons, but it might not work for all servers
Expand Down
1 change: 1 addition & 0 deletions platform/app/public/config/docker-nginx-dcm4chee.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
window.config = {
routerBasename: null,
showStudyList: true,
hideUndoRedo: false,
extensions: [],
modes: [],
// below flag is for performance reasons, but it might not work for all servers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ window.config = {
modes: [],
customizationService: {},
showStudyList: true,
hideUndoRedo: false,
maxNumberOfWebWorkers: 3,
showWarningMessageForCrossOrigin: true,
showCPUFallbackMessage: true,
Expand Down
1 change: 1 addition & 0 deletions platform/app/public/config/docker-nginx-orthanc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
window.config = {
routerBasename: null,
showStudyList: true,
hideUndoRedo: false,
extensions: [],
modes: [],
// below flag is for performance reasons, but it might not work for all servers
Expand Down
1 change: 1 addition & 0 deletions platform/app/public/config/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ window.config = {
extensions: [],
modes: ['@ohif/mode-test'],
showStudyList: true,
hideUndoRedo: false,
// below flag is for performance reasons, but it might not work for all servers
maxNumberOfWebWorkers: 3,
showWarningMessageForCrossOrigin: false,
Expand Down
1 change: 1 addition & 0 deletions platform/app/public/config/google.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ window.config = {
extensions: [],
modes: [],
showStudyList: true,
hideUndoRedo: false,
// filterQueryParam: false,
defaultDataSourceName: 'dicomweb',
dataSources: [
Expand Down
1 change: 1 addition & 0 deletions platform/app/public/config/kheops.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ window.config = {
modes: ['@ohif/mode-test'],
customizationService: {},
showStudyList: true,
hideUndoRedo: false,
// some windows systems have issues with more than 3 web workers
maxNumberOfWebWorkers: 3,
// below flag is for performance reasons, but it might not work for all servers
Expand Down
1 change: 1 addition & 0 deletions platform/app/public/config/local_dcm4chee.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
window.config = {
routerBasename: null,
showStudyList: true,
hideUndoRedo: false,
extensions: [],
modes: [],
// below flag is for performance reasons, but it might not work for all servers
Expand Down
1 change: 1 addition & 0 deletions platform/app/public/config/local_orthanc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ window.config = {
extensions: [],
modes: [],
showStudyList: true,
hideUndoRedo: false,
maxNumberOfWebWorkers: 3,
showLoadingIndicator: true,
showWarningMessageForCrossOrigin: true,
Expand Down
1 change: 1 addition & 0 deletions platform/app/public/config/local_static.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ window.config = {
extensions: [],
modes: [],
showStudyList: true,
hideUndoRedo: false,
maxNumberOfWebWorkers: 4,
// below flag is for performance reasons, but it might not work for all servers
showWarningMessageForCrossOrigin: true,
Expand Down
1 change: 1 addition & 0 deletions platform/app/public/config/multiple.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ window.config = {
extensions: [],
modes: ['@ohif/mode-test', '@ohif/mode-basic-dev-mode'],
showStudyList: true,
hideUndoRedo: false,
maxNumberOfWebWorkers: 4,
// below flag is for performance reasons, but it might not work for all servers
showWarningMessageForCrossOrigin: true,
Expand Down
1 change: 1 addition & 0 deletions platform/app/public/config/netlify.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ window.config = {
extensions: [],
modes: [],
showStudyList: true,
hideUndoRedo: false,
// below flag is for performance reasons, but it might not work for all servers
showWarningMessageForCrossOrigin: true,
showCPUFallbackMessage: true,
Expand Down
1 change: 1 addition & 0 deletions platform/app/public/config/public_dicomweb.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
window.config = {
routerBasename: null,
showStudyList: true,
hideUndoRedo: false,
// below flag is for performance reasons, but it might not work for all servers
showWarningMessageForCrossOrigin: true,
showCPUFallbackMessage: true,
Expand Down
2 changes: 2 additions & 0 deletions platform/app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ function App({
*/
showLoadingIndicator: true,
showStudyList: true,
hideUndoRedo: false,
oidc: [],
extensions: [],
},
Expand Down Expand Up @@ -190,6 +191,7 @@ App.propTypes = {
extensions: PropTypes.array,
showLoadingIndicator: PropTypes.bool,
showStudyList: PropTypes.bool,
hideUndoRedo: PropTypes.bool,
modes: PropTypes.array,
dataSources: PropTypes.array,
}),
Expand Down
1 change: 1 addition & 0 deletions platform/core/src/types/AppTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ declare global {
activateViewportBeforeInteraction?: boolean;
autoPlayCine?: boolean;
showStudyList?: boolean;
hideUndoRedo?: boolean;
whiteLabeling?: Record<string, unknown>;
httpErrorHandler?: (error: Error) => void;
dangerouslyUseDynamicConfig?: {
Expand Down
2 changes: 2 additions & 0 deletions platform/docs/docs/configuration/configurationFiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ window.config = {
extensions: [],
modes: [],
showStudyList: true,
hideUndoRedo: false,
dataSources: [
{
namespace: '@ohif/extension-default.dataSourcesModule.dicomweb',
Expand Down Expand Up @@ -187,6 +188,7 @@ if auth headers are used, a preflight request is required.
```
- `showLoadingIndicator`: (default to true), if set to false, the loading indicator will not be shown when navigating between studies.
- `showStudyList`: (default to false), if set to false, the OHIF search (or work list) page will not be shown nor will there be a back button (chevron) in the viewer to navigate to it
- `hideUndoRedo`: (default to false), if set to true the undo/redo buttons are removed from the header
- `useNorm16Texture`: (default to false), if set to true, it will use 16 bit data type for the image data wherever possible which has
significant impact on reducing the memory usage. However, the 16Bit textures require EXT_texture_norm16 extension in webGL 2.0 (you can check if you have it here https://webglreport.com/?v=2). In addition to the extension, there are reported problems for Intel Macs that might cause the viewer to crash. In summary, it is great a configuration if you have support for it.
- `useSharedArrayBuffer` (default to 'TRUE', options: 'AUTO', 'FALSE', 'TRUE', note that these are strings), for volume loading we use sharedArrayBuffer to be able to
Expand Down
Loading