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
@@ -1,4 +1,5 @@
|
||||
import './studylist.html';
|
||||
import './studylist.js';
|
||||
import './studylist.styl';
|
||||
|
||||
import './studylistStudy/studylistStudy.html';
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
import { Template } from 'meteor/templating';
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
|
||||
Template.studylist.onCreated(() => {
|
||||
// Set the current context
|
||||
OHIF.context.set('studylist');
|
||||
});
|
||||
|
||||
Template.studylist.onDestroyed(() => {
|
||||
// Reset the current context
|
||||
OHIF.context.set(null);
|
||||
});
|
||||
Reference in new issue
Block a user