fix(keyboardShortcuts) Fix the issue with Reset to Defaults for Keyboard Shortcuts. Fix typo for resetDefaults

This commit is contained in:
Aysel Afsar authored and Erik Ziegler committed 2018-07-12 14:20:10 +02:00
1 parent e1cd01828a
commit 0c7edbe22e
2 files changed
+6 -3

No files matched your search

@@ -29,7 +29,10 @@ Template.hotkeysForm.onCreated(() => {
};
return OHIF.ui.showDialog('dialogConfirm', dialogOptions).then(() => {
return OHIF.hotkeys.resetDefauls(contextName);
const resetDefaults = OHIF.hotkeys.resetDefaults(contextName);
resetDefaults.then(() => {
OHIF.hotkeys.load(contextName).then(defs => instance.hotkeysDefinitions.set(defs));
});
});
}
};