diff --git a/src/app/pages/dataPages/participant/participant.component.html b/src/app/pages/dataPages/participant/participant.component.html index 9c05c6b..4a956ce 100644 --- a/src/app/pages/dataPages/participant/participant.component.html +++ b/src/app/pages/dataPages/participant/participant.component.html @@ -1,6 +1,7 @@ { + return '/person/' + data['contactInformation.person.id']; + }, + }, { dataPath: 'dateRange', translation: 'Zeitraum' }, { dataPath: 'usernamefLotte', translation: 'User fLotte' }, { dataPath: 'usernameSlack', translation: 'User Slack' }, @@ -104,14 +111,24 @@ export class ParticipantComponent implements OnInit { }, ]; - headlineDataPath = 'contactInformation.person.name'; + getHeadline = (pageData) => { + return ( + pageData['contactInformation.person.firstName'] + + ' ' + + pageData['contactInformation.person.name'] + + ' (Aktive*r)' + ); + }; headlineIconName = 'directions_run'; pageDataGQLType: string = 'Participant'; pageDataGQLUpdateInputType: string = 'ParticipantUpdateInput'; dataService: any; - constructor(private participantsService: ParticipantsService, private workshopsService: WorkshopsService) { + constructor( + private participantsService: ParticipantsService, + private workshopsService: WorkshopsService + ) { this.workshopsService.loadTableData(); this.workshopsService.tableData.subscribe((data) => { this.propertiesInfo.find( diff --git a/src/app/pages/dataPages/person/person.component.html b/src/app/pages/dataPages/person/person.component.html index 9c05c6b..4a956ce 100644 --- a/src/app/pages/dataPages/person/person.component.html +++ b/src/app/pages/dataPages/person/person.component.html @@ -1,6 +1,7 @@ '/table/contactInformation', + linkToTableParams: (person) => { + return { "person.name": person.name, "person.firstName": person.firstName,}; + }, }, ]; headlineDataPath = 'name'; + getHeadline = (pageData) => { + return ( + pageData['firstName'] + + ' ' + + pageData['name'] + + ' (Person)' + ); + }; headlineIconName = 'person'; pageDataGQLType: string = 'Person'; pageDataGQLUpdateInputType: string = 'PersonUpdateInput';