dropped item logs displaySetInstanceUID
This commit is contained in:
parent
591da12536
commit
c3373357ee
@ -59,6 +59,7 @@ function PanelStudyBrowser({
|
|||||||
imageSrc,
|
imageSrc,
|
||||||
dragData: {
|
dragData: {
|
||||||
type: 'displayset',
|
type: 'displayset',
|
||||||
|
displaySetInstanceUID: ds.displaySetInstanceUID,
|
||||||
// .. Any other data to pass
|
// .. Any other data to pass
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@ -71,7 +71,6 @@ const StudyBrowser = ({
|
|||||||
/>
|
/>
|
||||||
{isActive && displaySets && (
|
{isActive && displaySets && (
|
||||||
<ThumbnailList
|
<ThumbnailList
|
||||||
dragData={{ type: 'displayset' }}
|
|
||||||
thumbnails={displaySets}
|
thumbnails={displaySets}
|
||||||
thumbnailActive={thumbnailActive}
|
thumbnailActive={thumbnailActive}
|
||||||
onThumbnailClick={thumbnailId => {
|
onThumbnailClick={thumbnailId => {
|
||||||
@ -94,11 +93,11 @@ const StudyBrowser = ({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
<div className="flex flex-row items-center justify-center border-b w-100 h-16 border-secondary-light p-4 bg-primary-dark">
|
<div className="flex flex-row items-center justify-center h-16 p-4 border-b w-100 border-secondary-light bg-primary-dark">
|
||||||
<ButtonGroup
|
<ButtonGroup
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
color="inherit"
|
color="inherit"
|
||||||
className="border border-secondary-light rounded-md"
|
className="border rounded-md border-secondary-light"
|
||||||
>
|
>
|
||||||
{tabs.map(tab => {
|
{tabs.map(tab => {
|
||||||
const { name, label } = tab;
|
const { name, label } = tab;
|
||||||
|
|||||||
@ -102,8 +102,8 @@ function ViewerViewportGrid(props) {
|
|||||||
key={viewportIndex}
|
key={viewportIndex}
|
||||||
className="m-1"
|
className="m-1"
|
||||||
acceptDropsFor="displayset"
|
acceptDropsFor="displayset"
|
||||||
onDrop={() => {
|
onDrop={droppedItem => {
|
||||||
/* setDisplaySet for Viewport */
|
console.warn('DROPPED ITEM:', droppedItem);
|
||||||
}}
|
}}
|
||||||
isActive={activeViewportIndex === viewportIndex}
|
isActive={activeViewportIndex === viewportIndex}
|
||||||
>
|
>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user