diff --git a/src/app/graphqlOperations/fragments/provider.graphql b/src/app/graphqlOperations/fragments/provider.graphql index 31da906..736bd22 100644 --- a/src/app/graphqlOperations/fragments/provider.graphql +++ b/src/app/graphqlOperations/fragments/provider.graphql @@ -7,6 +7,9 @@ fragment ProviderFieldsGeneral on Provider { organisation { id name + address { + ...AddressFields + } contactInformation { ...ContactInformationFieldsGeneral } diff --git a/src/app/pages/dataPages/bike/bike.component.ts b/src/app/pages/dataPages/bike/bike.component.ts index b98d408..e483bad 100644 --- a/src/app/pages/dataPages/bike/bike.component.ts +++ b/src/app/pages/dataPages/bike/bike.component.ts @@ -209,6 +209,10 @@ export class BikeComponent implements OnInit { dataPath: 'provider.organisation.address.zip', translation: 'Postleitzahl', }, + { + dataPath: 'provider.organisation.address.city', + translation: 'Ort', + }, ], }, { diff --git a/src/app/pages/tables/bikes/bikes.component.ts b/src/app/pages/tables/bikes/bikes.component.ts index 1dd25a5..7e4ebfa 100644 --- a/src/app/pages/tables/bikes/bikes.component.ts +++ b/src/app/pages/tables/bikes/bikes.component.ts @@ -101,16 +101,42 @@ export class BikesComponent implements OnInit { dataPath: 'taxes.organisationArea', translation: 'Steuern Vereinsbereich', }, - { dataPath: 'provider.id', translation: '' }, - { dataPath: 'provider.formName', translation: '' }, - { dataPath: 'provider.privatePerson.id', translation: '' }, - { dataPath: 'provider.privatePerson.person.id', translation: '' }, - { dataPath: 'provider.privatePerson.person.name', translation: '' }, - { dataPath: 'provider.privatePerson.person.firstName', translation: '' }, + { dataPath: 'provider.formName', translation: 'Anbieter Formular Name' }, { - dataPath: 'provider.privatePerson.person.contactInformation.email', - translation: '', + dataPath: 'provider.privatePerson.person.firstName', + translation: 'Anbieter (Person) Vorname', }, + { + dataPath: 'provider.privatePerson.person.name', + translation: 'Anbieter (Person) Nachname', + link: (data) => { + return '/provider/' + data['provider.id']; + }, + }, + { + dataPath: 'provider.organisation.name', + translation: 'Anbieter (Organisation) Name', + link: (data) => { + return '/provider/' + data['provider.id']; + }, + }, + { + dataPath: 'provider.organisation.address.street', + translation: 'Straße', + }, + { + dataPath: 'provider.organisation.address.number', + translation: 'Hausnummer', + }, + { + dataPath: 'provider.organisation.address.zip', + translation: 'Postleitzahl', + }, + { + dataPath: 'provider.organisation.address.city', + translation: 'Ort', + }, + { dataPath: 'lendingStation.name', translation: 'Standort', diff --git a/src/generated/graphql.ts b/src/generated/graphql.ts index c0ad443..c0e727c 100644 --- a/src/generated/graphql.ts +++ b/src/generated/graphql.ts @@ -2490,7 +2490,10 @@ export type PersonFieldsForPageFragment = ( export type ProviderFieldsGeneralFragment = { __typename?: 'Provider', id: string, formName?: Maybe, privatePerson?: Maybe<( { __typename?: 'ContactInformation' } & ContactInformationFieldsGeneralFragment - )>, organisation?: Maybe<{ __typename?: 'Organisation', id: string, name: string, contactInformation?: Maybe<( + )>, organisation?: Maybe<{ __typename?: 'Organisation', id: string, name: string, address?: Maybe<( + { __typename?: 'Address' } + & AddressFieldsFragment + )>, contactInformation?: Maybe<( { __typename?: 'ContactInformation' } & ContactInformationFieldsGeneralFragment )> }> }; @@ -3136,6 +3139,14 @@ export const ContactInformationFieldsGeneralFragmentDoc = gql` note } ${PersonFieldsGeneralFragmentDoc}`; +export const AddressFieldsFragmentDoc = gql` + fragment AddressFields on Address { + street + number + zip + city +} + `; export const ProviderFieldsGeneralFragmentDoc = gql` fragment ProviderFieldsGeneral on Provider { id @@ -3146,20 +3157,16 @@ export const ProviderFieldsGeneralFragmentDoc = gql` organisation { id name + address { + ...AddressFields + } contactInformation { ...ContactInformationFieldsGeneral } } } - ${ContactInformationFieldsGeneralFragmentDoc}`; -export const AddressFieldsFragmentDoc = gql` - fragment AddressFields on Address { - street - number - zip - city -} - `; + ${ContactInformationFieldsGeneralFragmentDoc} +${AddressFieldsFragmentDoc}`; export const OrganisationFieldsGeneralFragmentDoc = gql` fragment OrganisationFieldsGeneral on Organisation { id