fix(hot-keys): Set the correct context name to enable hot keys based on the current page (#308)
This commit is contained in:
1 parent
99041bebde
commit
5017fd13af
7 files changed
+25
-16
No files matched your search
@@ -28,6 +28,9 @@ Template.viewerMain.onCreated(() => {
|
||||
|
||||
// Add beforeUnload event handler to check for unsaved changes
|
||||
window.addEventListener('beforeunload', unloadHandlers.beforeUnload);
|
||||
|
||||
// Set the current context
|
||||
OHIF.context.set('viewer');
|
||||
});
|
||||
|
||||
Template.viewerMain.onRendered(() => {
|
||||
@@ -82,4 +85,7 @@ Template.viewerMain.onDestroyed(() => {
|
||||
// @TypeSafeStudies
|
||||
// Clears OHIF.viewer.StudyMetadataList collection
|
||||
OHIF.viewer.StudyMetadataList.removeAll();
|
||||
|
||||
// Reset the current context
|
||||
OHIF.context.set(null);
|
||||
});
|
||||
Reference in new issue
Block a user