diff --git a/src/components/Consents/Consents.tsx b/src/components/Consents/Consents.tsx index e0d258135cd20ac845f59fe38b6491845ce6fbe5..bd77effbf8c5442530d50570ed8dfe258c25101a 100644 --- a/src/components/Consents/Consents.tsx +++ b/src/components/Consents/Consents.tsx @@ -92,6 +92,10 @@ const Consents: React.FC = () => { initialWidth: 100, filter: true, }, + { + field: 'city', + headerName: 'Ville', + }, { field: 'startDate', headerName: 'Début du consentement', diff --git a/src/models/consent.model.ts b/src/models/consent.model.ts index 720aed7f16a225f33a84e87c3284e0ead6372a27..d7df0f4753f4508204b947d57ea0ae2b8d32b0b0 100644 --- a/src/models/consent.model.ts +++ b/src/models/consent.model.ts @@ -14,6 +14,7 @@ export interface ConsentEntity { address: string postalCode: string inseeCode: string + city: string } export interface IConsentPagination diff --git a/src/services/consent.service.ts b/src/services/consent.service.ts index fdfd233af9668048591cd4543c1030ba4894b72c..8e8c4c8dcee83e5cde2e7820fbed3dccf27b28b1 100644 --- a/src/services/consent.service.ts +++ b/src/services/consent.service.ts @@ -84,7 +84,7 @@ export class ConsentService { .setLocale('fr-FR') .toLocaleString() - const consent: IConsent = { + return { ID: consentEntity.ID, startDate: startDate, endDate: endDate, @@ -93,8 +93,8 @@ export class ConsentService { pointID: consentEntity.pointID, address: consentEntity.address, postalCode: consentEntity.postalCode, + city: consentEntity.city, } - return consent } /**