2023-03-10 04:30:09 +01:00
|
|
|
import { Types } from '@ohif/core';
|
2023-09-01 22:19:39 +02:00
|
|
|
import { PanelMeasurementTableTracking, PanelStudyBrowserTracking } from './panels';
|
2023-12-11 15:43:58 +01:00
|
|
|
import i18n from 'i18next';
|
2020-05-26 15:03:58 +02:00
|
|
|
|
|
|
|
|
// TODO:
|
|
|
|
|
// - No loading UI exists yet
|
|
|
|
|
// - cancel promises when component is destroyed
|
|
|
|
|
// - show errors in UI for thumbnails if promise fails
|
2023-09-01 22:19:39 +02:00
|
|
|
function getPanelModule({ commandsManager, extensionManager, servicesManager }): Types.Panel[] {
|
2020-05-26 15:03:58 +02:00
|
|
|
return [
|
|
|
|
|
{
|
|
|
|
|
name: 'seriesList',
|
2023-09-22 21:36:44 +02:00
|
|
|
iconName: 'tab-studies',
|
2020-05-26 15:03:58 +02:00
|
|
|
iconLabel: 'Studies',
|
2023-12-11 15:43:58 +01:00
|
|
|
label: i18n.t('SidePanel:Studies'),
|
2020-05-26 15:03:58 +02:00
|
|
|
component: PanelStudyBrowserTracking.bind(null, {
|
|
|
|
|
commandsManager,
|
|
|
|
|
extensionManager,
|
|
|
|
|
servicesManager,
|
|
|
|
|
}),
|
|
|
|
|
},
|
2023-03-10 04:30:09 +01:00
|
|
|
|
2020-05-26 15:03:58 +02:00
|
|
|
{
|
2020-06-03 21:20:09 +02:00
|
|
|
name: 'trackedMeasurements',
|
2022-11-16 20:19:52 +01:00
|
|
|
iconName: 'tab-linear',
|
2020-05-26 15:03:58 +02:00
|
|
|
iconLabel: 'Measure',
|
2023-12-11 15:43:58 +01:00
|
|
|
label: i18n.t('SidePanel:Measurements'),
|
2020-05-26 15:03:58 +02:00
|
|
|
component: PanelMeasurementTableTracking.bind(null, {
|
|
|
|
|
commandsManager,
|
|
|
|
|
extensionManager,
|
|
|
|
|
servicesManager,
|
|
|
|
|
}),
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default getPanelModule;
|