WIP reorganization for study browser (again)

This commit is contained in:
Erik Ziegler committed 2020-05-19 13:55:38 +02:00
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
);
}
};