fix: button expertise view tiap study

This commit is contained in:
mario
2025-04-15 03:06:17 +00:00
parent 841f84bfdb
commit ca84179aa6
5 changed files with 41 additions and 106 deletions

View File

@@ -21,7 +21,10 @@ const StudyItem = ({
viewPreset = 'thumbnails',
onThumbnailContextMenu,
servicesManager, // Tambah servicesManager as a prop
studyInstanceUid = '',
}: withAppTypes) => {
// FETCHING ACCESSION NUMBER DAN EXPERTISE
return (
<Accordion
type="single"
@@ -59,16 +62,17 @@ const StudyItem = ({
<>
{/* Expertise Button */}
<div
className="bg-primary-dark hover:bg-primary-active mx-4 my-4 cursor-pointer rounded-lg border border-white py-2 text-center text-white"
className="bg-primary-dark hover:bg-primary-active mx-8 my-4 cursor-pointer rounded-lg border border-white py-3 text-center text-white"
onClick={() => {
// Trigger the expertise panel in the right side panel (segmentation Panel)
servicesManager.services.panelService.activatePanel(
'@ohif/extension-cornerstone.panelModule.panelSegmentation-exp',
// '@ohif/extension-cornerstone.panelModule.panelSegmentation-exp',
`@ohif/extension-cornerstone.panelModule.panelSegmentation-exp-${studyInstanceUid}`,
true
);
}}
>
View Expertise
Expertise
</div>
{/* Thumbnails */}
@@ -105,6 +109,7 @@ StudyItem.propTypes = {
onClickUntrack: PropTypes.func,
viewPreset: PropTypes.string,
servicesManager: PropTypes.object.isRequired, // Tambah servicesManager prop
studyInstanceUid: PropTypes.string.string,
};
export { StudyItem };