From 266450d6f4fff19975cd18dc49b4d255055e252d Mon Sep 17 00:00:00 2001 From: Carlos Soares Date: Thu, 11 May 2023 14:03:18 +0100 Subject: [PATCH 1/2] fix: revert team beratung descriptions OB-4646 --- src/resources/i18n/de.informal.ts | 3 +-- src/resources/i18n/de.ts | 3 +-- src/resources/i18n/en.ts | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/resources/i18n/de.informal.ts b/src/resources/i18n/de.informal.ts index 445295869..32229f5b9 100644 --- a/src/resources/i18n/de.informal.ts +++ b/src/resources/i18n/de.informal.ts @@ -609,8 +609,7 @@ export const deInformal = { sessionList: { empty: { mySessions: 'Du hast zur Zeit keine aktiven Beratungen', - teamSessions: - 'Es gibt keine aktiven Teamberatungen. Um eine Teamberatung zu starten, musst du deinen Kunden einem anderen Berater zuweisen. Sobald der Kunde einverstanden ist, können beide Berater gleichzeitig mit dem Kunden chatten.', + teamSessions: 'Dein Team hat keine aktiven Beratungen', perSessions: 'Du hast zur Zeit keine aktiven Peer-Beratungen' } }, diff --git a/src/resources/i18n/de.ts b/src/resources/i18n/de.ts index e8a8ff266..61b18b72d 100644 --- a/src/resources/i18n/de.ts +++ b/src/resources/i18n/de.ts @@ -1894,8 +1894,7 @@ export const de = { 'Aktuell warten keine anonymen Ratsuchenden auf einen Live-Chat', known: 'Aktuell liegen keine Erstanfragen vor', mySessions: 'Sie haben zur Zeit keine aktiven Beratungen', - teamSessions: - 'Es gibt keine aktiven Teamberatungen. Um eine Teamberatung zu starten, müssen Sie Ihren Kunden einem anderen Berater zuweisen. Sobald der Kunde einverstanden ist, können beide Berater gleichzeitig mit dem Kunden chatten.', + teamSessions: 'Ihr Team hat keine aktiven Beratungen', peersessions: 'Sie haben zur Zeit keine aktiven Peer-Beratungen', archived: 'Es sind noch keine Beratungen archiviert' }, diff --git a/src/resources/i18n/en.ts b/src/resources/i18n/en.ts index 12a073259..0bb9861bc 100644 --- a/src/resources/i18n/en.ts +++ b/src/resources/i18n/en.ts @@ -1864,8 +1864,7 @@ export const en = { anonymous: 'Currently, no anonymous advice seekers are waiting for a live chat', mySessions: 'You currently have no active consultations', - teamSessions: - 'There are no active team consultations. To start a team consultation, you will need to assign your client to another advisor. Once the advice seeker has agreed to this, both advisors will be able to chat here with the customer at the same time.', + teamSessions: 'Your team has no active consultations', peersessions: 'You currently have no active peer counselling', archived: 'There are no consultations in the archive yet' }, From 3ead565afc1acd800bbd78b4e0acceaad1fb6b03 Mon Sep 17 00:00:00 2001 From: Carlos Soares Date: Fri, 12 May 2023 08:19:36 +0100 Subject: [PATCH 2/2] fix: overview available to AS OB-4851 --- src/components/profile/profile.routes.ts | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/src/components/profile/profile.routes.ts b/src/components/profile/profile.routes.ts index 0cdd042c6..b65f6f3aa 100644 --- a/src/components/profile/profile.routes.ts +++ b/src/components/profile/profile.routes.ts @@ -26,8 +26,10 @@ import { EmailNotification } from './EmailNotifications'; import { BrowserNotification } from './BrowserNotifications'; import { browserNotificationsSettings } from '../../utils/notificationHelpers'; -const shouldShowOverview = (useOverviewPage: boolean) => - useOverviewPage && !isDesktop; +const shouldShowOverview = (useOverviewPage: boolean, userData) => + useOverviewPage && + !isDesktop && + hasUserAuthority(AUTHORITIES.CONSULTANT_DEFAULT, userData); const profileRoutes = ( settings: AppConfigInterface, @@ -41,20 +43,26 @@ const profileRoutes = ( url: '/allgemeines', elements: [ { - condition: () => - shouldShowOverview(settings.useOverviewPage), + condition: (userData) => + shouldShowOverview(settings.useOverviewPage, userData), title: 'Overview', url: '/overview', elements: [ { - condition: () => - shouldShowOverview(settings.useOverviewPage), + condition: (userData) => + shouldShowOverview( + settings.useOverviewPage, + userData + ), boxed: false, component: OverviewSessions }, { - condition: () => - shouldShowOverview(settings.useOverviewPage), + condition: (userData) => + shouldShowOverview( + settings.useOverviewPage, + userData + ), component: OverviewBookings, boxed: false }