From 3c6d1aebcae1e89ee53fe133ef2e0bb6103ebbd7 Mon Sep 17 00:00:00 2001 From: Francis Lavoie Date: Mon, 18 Sep 2023 15:59:05 -0400 Subject: [PATCH] fix: skfp-680 Update translation authorized studies --- src/locales/en.ts | 5 +++-- .../components/DashboardCards/AuthorizedStudies/index.tsx | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/locales/en.ts b/src/locales/en.ts index e2eb8bebb..7bbbf08c2 100644 --- a/src/locales/en.ts +++ b/src/locales/en.ts @@ -551,10 +551,11 @@ const en = { authorizedStudies: { title: 'Authorized Studies {count, plural, =0 {} other {(#)}}', connectedNotice: - 'You have access to the following KIDS FIRST controlled data through your NIH credentials.', + 'You have access to the following Kids First controlled data.', disconnectedNotice: - 'Access controlled-access data by connecting your account using your NIH Credentials', + 'To access controlled study files, connect to our data repository partners using your NIH credentials.', disconnect: 'Disconnect', + manageConnections: 'Manage your connections', noAvailableStudies: 'No available studies', authorization: 'Authorization', of: 'of', diff --git a/src/views/Dashboard/components/DashboardCards/AuthorizedStudies/index.tsx b/src/views/Dashboard/components/DashboardCards/AuthorizedStudies/index.tsx index 9a82edb29..66a3e4114 100644 --- a/src/views/Dashboard/components/DashboardCards/AuthorizedStudies/index.tsx +++ b/src/views/Dashboard/components/DashboardCards/AuthorizedStudies/index.tsx @@ -80,7 +80,9 @@ const AuthorizedStudies = ({ id, className = '' }: DashboardCardProps) => { className={styles.disconnectBtn} loading={connectionLoading} > - {intl.get('screen.dashboard.cards.authorizedStudies.disconnect')} + {loadingStudiesForFences.length === 0 ? + intl.get('screen.dashboard.cards.authorizedStudies.disconnect'): + intl.get('screen.dashboard.cards.authorizedStudies.manageConnections')}