set the displaySet for the dropped thumbnail/viewport target
This commit is contained in:
1 parent
ff371ece8d
commit
b396cc8d3f
2 files changed
+22
-21
No files matched your search
@@ -56,6 +56,13 @@ function App({ config, defaultExtensions }) {
|
||||
switch (action.type) {
|
||||
case 'SET_ACTIVE_VIEWPORT_INDEX':
|
||||
return { ...state, ...{ activeViewportIndex: action.payload } };
|
||||
case 'SET_DISPLAYSET_FOR_VIEWPORT':
|
||||
const { viewportIndex, displaySetInstanceUID } = action.payload;
|
||||
const viewports = state.viewports.slice();
|
||||
|
||||
viewports[viewportIndex] = { displaySetInstanceUID };
|
||||
|
||||
return { ...state, ...{ viewports } };
|
||||
default:
|
||||
return action.payload;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user