Skip to content

Commit

Permalink
fix(tmtv): Fusion_Viewport to allow displaySets to be changed (#3502)
Browse files Browse the repository at this point in the history
Allows drag and drop of new sets of viewports to change them one at a time.
Co-authored-by: Bill Wallace <wayfarer3130@gmail.com>
  • Loading branch information
Sofien-Sellami committed Jun 29, 2023
1 parent b4dbe56 commit 14974b6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
3 changes: 2 additions & 1 deletion modes/tmtv/src/index.js
Expand Up @@ -220,7 +220,8 @@ function modeFactory({ modeConfiguration }) {
return {
id: ohif.layout,
props: {
// leftPanels: [ohif.thumbnailList],
leftPanels: [ohif.thumbnailList],
leftPanelDefaultClosed: true,
rightPanels: [tmtv.ROIThresholdPanel, tmtv.petSUV],
viewports: [
{
Expand Down
Expand Up @@ -695,15 +695,18 @@ export default class HangingProtocolService extends PubSubService {
) {
viewport.displaySets.forEach(displaySet => {
const { id } = displaySet;
const {
displaySetInstanceUID: oldDisplaySetInstanceUID,
} = displaySetMatchDetails.get(id);
const displaySetMatchDetail = displaySetMatchDetails.get(id);

displaySetInstanceUIDs.push(
const { displaySetInstanceUID: oldDisplaySetInstanceUID } = displaySetMatchDetail;

const displaySetInstanceUID =
displaySet.id === displaySetSelectorId
? newDisplaySetInstanceUID
: oldDisplaySetInstanceUID
);
: oldDisplaySetInstanceUID;

displaySetMatchDetail.displaySetInstanceUID = displaySetInstanceUID;

displaySetInstanceUIDs.push(displaySetInstanceUID);
displaySetOptions.push(displaySet);
});
}
Expand Down

0 comments on commit 14974b6

Please sign in to comment.