Fix the issues with customized store and retrieve functions for hot keys and window/level presets
This commit is contained in:
1 parent
6b8613017e
commit
51d6a64c45
2 files changed
+10
-2
No files matched your search
@@ -33,7 +33,7 @@ export class HotkeysManager {
|
||||
const storageKey = `hotkeysDefinitions.${contextName}`;
|
||||
return new Promise((resolve, reject) => {
|
||||
if (this.storeFunction) {
|
||||
this.storeFunction(contextName, definitions).then(resolve).catch(reject);
|
||||
this.storeFunction.call(this, storageKey, definitions).then(resolve).catch(reject);
|
||||
} else if (Meteor.userId()) {
|
||||
OHIF.user.setData(storageKey, definitions).then(resolve).catch(reject);
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user