Skip to content

Commit

Permalink
Merge pull request #925 from Onlineberatung/fix/revert-team-beratung-…
Browse files Browse the repository at this point in the history
…overview-advice-seeker

Fix/revert team beratung overview advice seeker
  • Loading branch information
CarlosSoares authored May 12, 2023
2 parents 0da9f16 + f190b44 commit ce6bb35
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 14 deletions.
24 changes: 16 additions & 8 deletions src/components/profile/profile.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
}
Expand Down
3 changes: 1 addition & 2 deletions src/resources/i18n/de.informal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
},
Expand Down
3 changes: 1 addition & 2 deletions src/resources/i18n/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
},
Expand Down
3 changes: 1 addition & 2 deletions src/resources/i18n/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
},
Expand Down

0 comments on commit ce6bb35

Please sign in to comment.