diff --git a/src/components/profile/profile.routes.ts b/src/components/profile/profile.routes.ts index 1822061c2..93006a51c 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 } 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' },