fix: hotkeys storage between studies and truncated patient names (#2516)

* fix: PatientName truncation in the worklist

* fix: hotkeys preferences
This commit is contained in:
Alireza authored and GitHub committed 2021-08-19 08:05:33 -04:00
1 parent eff70ae22c
commit ca900f80e1
5 files changed
+53 -34

No files matched your search

+10 -1
View File
@@ -181,7 +181,16 @@ export default function ModeRoute({
}
hotkeysManager.setDefaultHotKeys(hotkeys);
hotkeysManager.setHotkeys(hotkeys);
const userPreferredHotkeys = JSON.parse(
localStorage.getItem('hotkey-definitions')
);
if (userPreferredHotkeys?.length) {
hotkeysManager.setHotkeys(userPreferredHotkeys);
} else {
hotkeysManager.setHotkeys(hotkeys);
}
return () => {
hotkeysManager.destroy();
@@ -270,10 +270,10 @@ function WorkList({
{
key: 'studyDate',
content: (
<div>
<>
{studyDate && <span className="mr-4">{studyDate}</span>}
{studyTime && <span>{studyTime}</span>}
</div>
</>
),
title: `${studyDate || ''} ${studyTime || ''}`,
gridCol: 5,