From 3f4a01e2a683ff806ab983ab496df7f49906d4d9 Mon Sep 17 00:00:00 2001 From: Max Ehrlicher-Schmidt Date: Thu, 3 Dec 2020 22:13:13 +0100 Subject: [PATCH] Add note to contactInformation select --- .../lending-station.component.ts | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/app/pages/dataPages/lending-station/lending-station.component.ts b/src/app/pages/dataPages/lending-station/lending-station.component.ts index b2d6f76..3ecb516 100644 --- a/src/app/pages/dataPages/lending-station/lending-station.component.ts +++ b/src/app/pages/dataPages/lending-station/lending-station.component.ts @@ -43,7 +43,9 @@ export class LendingStationComponent implements OnInit { ' ' + contact.email + ' ' + - contact.phone + contact.phone + + ' ' + + contact.note ); }, propertyPrefixToOverwrite: 'contactInformationIntern', @@ -85,7 +87,9 @@ export class LendingStationComponent implements OnInit { ' ' + contact.email + ' ' + - contact.phone + contact.phone + + ' ' + + contact.note ); }, propertyPrefixToOverwrite: 'contactInformationExtern', @@ -122,8 +126,11 @@ export class LendingStationComponent implements OnInit { dataService: null, columnInfo: [ { dataPath: 'dateRange', translation: 'Zeitraum' }, - { dataPath: 'cargoBike.name', translation: 'Lastenrad', - link: (row) => '/bike/' + row["cargoBike.id"], }, + { + dataPath: 'cargoBike.name', + translation: 'Lastenrad', + link: (row) => '/bike/' + row['cargoBike.id'], + }, ], editableReferences: false, linkToTable: () => '/table/timeFrames', @@ -142,7 +149,7 @@ export class LendingStationComponent implements OnInit { constructor( private lendingStationsService: LendingStationsService, - private contactInformationService: ContactInformationService, + private contactInformationService: ContactInformationService ) { this.contactInformationService.loadTableData(); this.contactInformationService.tableData.subscribe((data) => {