WIP reorganization for study browser (again)
This commit is contained in:
1 parent
b65a91129e
commit
d54bd5738e
4 files changed
+108
-87
No files matched your search
@@ -2,6 +2,7 @@ import pubSubServiceInterface from '../pubSubServiceInterface';
|
||||
|
||||
const EVENTS = {
|
||||
DISPLAY_SETS_ADDED: 'event::displaySetService:displaySetsAdded',
|
||||
DISPLAY_SETS_CHANGED: 'event::displaySetService:displaySetsChanged',
|
||||
};
|
||||
|
||||
const displaySetCache = [];
|
||||
@@ -98,6 +99,11 @@ export default class DisplaySetService {
|
||||
// If array of array of instances
|
||||
if (displaySetsAdded && displaySetsAdded.length) {
|
||||
this._broadcastChange(EVENTS.DISPLAY_SETS_ADDED, displaySetsAdded);
|
||||
|
||||
this._broadcastChange(
|
||||
EVENTS.DISPLAY_SETS_CHANGED,
|
||||
this.activeDisplaySets
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -35,9 +35,6 @@ const StudyBrowser = ({
|
||||
const [studyActive, setStudyActive] = useState(null);
|
||||
const [thumbnailActive, setThumbnailActive] = useState(null);
|
||||
|
||||
console.log('StudyBrowser rerender');
|
||||
console.log(`tabActive: ${tabActive}`);
|
||||
|
||||
const getTabContent = () => {
|
||||
const tabData = tabs.find(tab => tab.name === tabActive);
|
||||
|
||||
|
||||
@@ -20,7 +20,8 @@ function ViewerViewportGrid(props) {
|
||||
|
||||
// TODO -> Make a HangingProtocolService
|
||||
const HangingProtocolService = displaySets => {
|
||||
const displaySetInstanceUID = displaySets[0].displaySetInstanceUID;
|
||||
const displaySet = DisplaySetService.activeDisplaySets[0]
|
||||
const displaySetInstanceUID = displaySet.displaySetInstanceUID;
|
||||
|
||||
return {
|
||||
numRows: 1,
|
||||
|
||||
Reference in new issue
Block a user