diff --git a/src/content/ContentRoot.tsx b/src/content/ContentRoot.tsx index a8298548..883ab6be 100644 --- a/src/content/ContentRoot.tsx +++ b/src/content/ContentRoot.tsx @@ -119,6 +119,7 @@ const ContentRoot: React.FC = () => { patient={patient} onDeletePatient={handleDeletePatient} onEditPatient={(patient) => setEditingPatient(patient)} + onStudyUpdated={() => refreshFind()} /> )) )} diff --git a/src/content/OhifViewerLink.tsx b/src/content/OhifViewerLink.tsx index eb0abecd..ba41256f 100644 --- a/src/content/OhifViewerLink.tsx +++ b/src/content/OhifViewerLink.tsx @@ -6,7 +6,7 @@ type OhifViewerLinkProps = { const OhifViewerLink = ({ studyInstanceUID }: OhifViewerLinkProps) => { const token = store?.getState()?.user.token return ( - View in OHIF + View in OHIF ) } diff --git a/src/content/patients/AccordionPatient.tsx b/src/content/patients/AccordionPatient.tsx index fb16ecab..710c431d 100644 --- a/src/content/patients/AccordionPatient.tsx +++ b/src/content/patients/AccordionPatient.tsx @@ -12,10 +12,11 @@ import { AccordionHeader } from "../../ui/Accordion"; type AccordionPatientProps = { patient: Patient; onEditPatient: (patient :Patient) => void; + onStudyUpdated: (patient :Patient) => void; onDeletePatient: (patient :Patient) => void; }; -const AccordionPatient: React.FC = ({ patient, onEditPatient, onDeletePatient }) => { +const AccordionPatient: React.FC = ({ patient, onEditPatient, onDeletePatient, onStudyUpdated }) => { const [selectedStudyId, setSelectedStudyId] = useState(null); const handleStudySelected = (studyId: string) => { @@ -55,7 +56,7 @@ const AccordionPatient: React.FC = ({ patient, onEditPati
onEditPatient(patient)} + onStudyUpdated={() => onStudyUpdated(patient)} onStudySelected={handleStudySelected} />
diff --git a/src/content/series/SeriesRoot.tsx b/src/content/series/SeriesRoot.tsx index 2fde2340..ca16e370 100644 --- a/src/content/series/SeriesRoot.tsx +++ b/src/content/series/SeriesRoot.tsx @@ -41,8 +41,8 @@ const SeriesRoot: React.FC = ({ studyId }) => { toastSuccess('Series deleted successfully'); refetchSeries(); }, - onError: (error: any) => { - toastError(`Failed to delete series ${error}`); + onError: () => { + toastError(`Failed to delete series`); }, } ); diff --git a/src/content/studies/AiStudy.tsx b/src/content/studies/AiStudy.tsx index 39615021..1fb3a61f 100644 --- a/src/content/studies/AiStudy.tsx +++ b/src/content/studies/AiStudy.tsx @@ -47,7 +47,7 @@ const AiStudy: React.FC = ({ studyId, onClose, show }) => { [[]], { onSuccess: (jobId) => { - toastSuccess("Job Created " + jobId) + toastSuccess("Job Created") setJobId(jobId) } } diff --git a/src/content/studies/StudyRoot.tsx b/src/content/studies/StudyRoot.tsx index f2562389..355c969f 100644 --- a/src/content/studies/StudyRoot.tsx +++ b/src/content/studies/StudyRoot.tsx @@ -37,7 +37,7 @@ const StudyRoot: React.FC = ({ patient, onStudyUpdated, onStudyS onStudyUpdated(); }, onError: (error: any) => { - toastError('Failed to delete study: ' + error); + toastError('Failed to delete study'); }, } );