From f4755121a8d50a49c259560cf46f1215033b7d70 Mon Sep 17 00:00:00 2001 From: lorisadmin Date: Mon, 10 Nov 2025 12:17:19 -0500 Subject: [PATCH 1/7] fix imaging qc --- modules/imaging_qc/jsx/imagingQCIndex.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/modules/imaging_qc/jsx/imagingQCIndex.js b/modules/imaging_qc/jsx/imagingQCIndex.js index dac360698d3..1f0dbb0f9ab 100644 --- a/modules/imaging_qc/jsx/imagingQCIndex.js +++ b/modules/imaging_qc/jsx/imagingQCIndex.js @@ -3,7 +3,8 @@ import React, {Component} from 'react'; import Loader from 'Loader'; import FilterableDataTable from 'FilterableDataTable'; import PropTypes from 'prop-types'; - +import {withTranslation} from 'react-i18next'; +import i18n from 'I18nSetup'; /** * Imaging Quality Control React Component */ @@ -252,14 +253,14 @@ ImagingQCIndex.propTypes = { hasPermission: PropTypes.func.isRequired, }; -window.addEventListener('load', () => { - createRoot( - document.getElementById('lorisworkspace') - ).render( - + window.addEventListener('load', () => { + i18n.addResourceBundle('jp', 'loris', {}, true, true); + const ImagingQC = withTranslation(['loris'])(ImagingQCIndex); + createRoot(document.getElementById('lorisworkspace')).render( + ); }); From f2944e94c206ae31e1996cb54208b3ef87e613c1 Mon Sep 17 00:00:00 2001 From: Shen Date: Mon, 10 Nov 2025 12:35:51 -0500 Subject: [PATCH 2/7] Update imagingQCIndex.js --- modules/imaging_qc/jsx/imagingQCIndex.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/imaging_qc/jsx/imagingQCIndex.js b/modules/imaging_qc/jsx/imagingQCIndex.js index 1f0dbb0f9ab..cfb918dfb90 100644 --- a/modules/imaging_qc/jsx/imagingQCIndex.js +++ b/modules/imaging_qc/jsx/imagingQCIndex.js @@ -253,14 +253,14 @@ ImagingQCIndex.propTypes = { hasPermission: PropTypes.func.isRequired, }; - window.addEventListener('load', () => { - i18n.addResourceBundle('jp', 'loris', {}, true, true); - const ImagingQC = withTranslation(['loris'])(ImagingQCIndex); - createRoot(document.getElementById('lorisworkspace')).render( - +window.addEventListener('load', () => { + i18n.addResourceBundle('jp', 'loris', {}, true, true); + const ImagingQC = withTranslation(['loris'])(ImagingQCIndex); + createRoot(document.getElementById('lorisworkspace')).render( + ); }); From b81c9301e8fec6b03571000ec6fe18c62def3b1d Mon Sep 17 00:00:00 2001 From: Shen Date: Mon, 10 Nov 2025 12:41:39 -0500 Subject: [PATCH 3/7] Update imagingQCIndex.js --- modules/imaging_qc/jsx/imagingQCIndex.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/imaging_qc/jsx/imagingQCIndex.js b/modules/imaging_qc/jsx/imagingQCIndex.js index cfb918dfb90..603c30b5545 100644 --- a/modules/imaging_qc/jsx/imagingQCIndex.js +++ b/modules/imaging_qc/jsx/imagingQCIndex.js @@ -254,13 +254,13 @@ ImagingQCIndex.propTypes = { }; window.addEventListener('load', () => { - i18n.addResourceBundle('jp', 'loris', {}, true, true); - const ImagingQC = withTranslation(['loris'])(ImagingQCIndex); - createRoot(document.getElementById('lorisworkspace')).render( - + i18n.addResourceBundle('jp', 'loris', {}, true, true); + const ImagingQC = withTranslation(['loris'])(ImagingQCIndex); + createRoot(document.getElementById('lorisworkspace')).render( + ); }); From e30956c91188fb9f56abe0b005b700c55e9cd836 Mon Sep 17 00:00:00 2001 From: Shen Date: Mon, 10 Nov 2025 12:48:08 -0500 Subject: [PATCH 4/7] Update imagingQCIndex.js --- modules/imaging_qc/jsx/imagingQCIndex.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/imaging_qc/jsx/imagingQCIndex.js b/modules/imaging_qc/jsx/imagingQCIndex.js index 603c30b5545..8ad40f4c4ae 100644 --- a/modules/imaging_qc/jsx/imagingQCIndex.js +++ b/modules/imaging_qc/jsx/imagingQCIndex.js @@ -258,8 +258,8 @@ window.addEventListener('load', () => { const ImagingQC = withTranslation(['loris'])(ImagingQCIndex); createRoot(document.getElementById('lorisworkspace')).render( ); }); From 8616fe7f97aca7456886e638bbd4731512782810 Mon Sep 17 00:00:00 2001 From: Shen Date: Mon, 10 Nov 2025 12:53:54 -0500 Subject: [PATCH 5/7] Update imagingQCIndex.js --- modules/imaging_qc/jsx/imagingQCIndex.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/imaging_qc/jsx/imagingQCIndex.js b/modules/imaging_qc/jsx/imagingQCIndex.js index 8ad40f4c4ae..0914816a3b5 100644 --- a/modules/imaging_qc/jsx/imagingQCIndex.js +++ b/modules/imaging_qc/jsx/imagingQCIndex.js @@ -258,8 +258,8 @@ window.addEventListener('load', () => { const ImagingQC = withTranslation(['loris'])(ImagingQCIndex); createRoot(document.getElementById('lorisworkspace')).render( ); }); From bb0051617761fdc137f27e588695e9dd3e51ca10 Mon Sep 17 00:00:00 2001 From: lorisadmin Date: Mon, 10 Nov 2025 16:03:56 -0500 Subject: [PATCH 6/7] fix --- modules/imaging_qc/jsx/imagingQCIndex.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/modules/imaging_qc/jsx/imagingQCIndex.js b/modules/imaging_qc/jsx/imagingQCIndex.js index 0914816a3b5..29fb4ff9787 100644 --- a/modules/imaging_qc/jsx/imagingQCIndex.js +++ b/modules/imaging_qc/jsx/imagingQCIndex.js @@ -3,7 +3,6 @@ import React, {Component} from 'react'; import Loader from 'Loader'; import FilterableDataTable from 'FilterableDataTable'; import PropTypes from 'prop-types'; -import {withTranslation} from 'react-i18next'; import i18n from 'I18nSetup'; /** * Imaging Quality Control React Component @@ -254,13 +253,12 @@ ImagingQCIndex.propTypes = { }; window.addEventListener('load', () => { - i18n.addResourceBundle('jp', 'loris', {}, true, true); - const ImagingQC = withTranslation(['loris'])(ImagingQCIndex); - createRoot(document.getElementById('lorisworkspace')).render( - ); }); - From 4c0c0c9f30195e2df94f6cf95a8cf5e0540d84d1 Mon Sep 17 00:00:00 2001 From: Shen Date: Mon, 10 Nov 2025 18:02:35 -0500 Subject: [PATCH 7/7] Update imagingQCIndex.js --- modules/imaging_qc/jsx/imagingQCIndex.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/imaging_qc/jsx/imagingQCIndex.js b/modules/imaging_qc/jsx/imagingQCIndex.js index 29fb4ff9787..1445d5a1663 100644 --- a/modules/imaging_qc/jsx/imagingQCIndex.js +++ b/modules/imaging_qc/jsx/imagingQCIndex.js @@ -3,6 +3,7 @@ import React, {Component} from 'react'; import Loader from 'Loader'; import FilterableDataTable from 'FilterableDataTable'; import PropTypes from 'prop-types'; +// eslint-disable-next-line no-unused-vars import i18n from 'I18nSetup'; /** * Imaging Quality Control React Component