Mise à jour configuration et accès TrizRis dans OHIF
Build and Deploy Docs / build-and-deploy-docs (push) Canceled after 0s

This commit is contained in:
Kenza committed 2026-11-11 14:37:36 +01:00
1 parent 32b664fc1d
commit 753501679f
3 files changed
+6 -5

No files matched your search

+1 -1
View File
@@ -30,7 +30,7 @@ window.config = {
showStudyList: true,
maxNumberOfWebWorkers: 3,
maxNumberOfWebWorkers: 1,
showWarningMessageForCrossOrigin: true,
@@ -24,7 +24,7 @@ export default function TrizRisProtectedRoute({ children }: Props) {
console.log('### VERIFICATION ACCES TRIZRIS ###', result);
setAuthorized(result);
setAuthorized(result !== null && result.authorized === true);
} catch (error) {
console.error('### ERREUR VERIFICATION ACCES TRIZRIS ###', error);
@@ -45,8 +45,7 @@ export default function TrizRisProtectedRoute({ children }: Props) {
};
}, []);
// Pendant la vérification :
// on n'affiche PAS encore le viewer.
// Vérification en cours
if (checking) {
return (
<div
@@ -59,6 +58,7 @@ export default function TrizRisProtectedRoute({ children }: Props) {
);
}
// Accès refusé
if (!authorized) {
return (
<Navigate
@@ -68,5 +68,6 @@ export default function TrizRisProtectedRoute({ children }: Props) {
);
}
// Accès autorisé : afficher OHIF
return <>{children}</>;
}
+1 -1
View File
@@ -1,4 +1,4 @@
const sharedConfig = require('../../config/trizris.shared');
import sharedConfig from '../../../app/config/trizris.shared';
export const TrizRisConfig = {
apiBaseUrl: `${sharedConfig.TRIZRIS_BASE_URL}/api`,