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
+6
@@ -18,6 +18,9 @@ Template.standaloneViewerMain.onCreated(() => {
|
||||
// Metadata configuration
|
||||
const metadataProvider = OHIF.viewer.metadataProvider;
|
||||
cornerstone.metaData.addProvider(metadataProvider.provider.bind(metadataProvider));
|
||||
|
||||
// Set the current context
|
||||
OHIF.context.set('viewer');
|
||||
});
|
||||
|
||||
Template.standaloneViewerMain.onRendered(() => {
|
||||
@@ -58,4 +61,7 @@ Template.standaloneViewerMain.onDestroyed(() => {
|
||||
|
||||
// Clear references to all stacks in the StackManager
|
||||
OHIF.viewerbase.stackManager.clearStacks();
|
||||
|
||||
// Reset the current context
|
||||
OHIF.context.set(null);
|
||||
});
|
||||
Reference in new issue
Block a user