diff --git a/frontend/src/app/GN2CommonModule/form/data-form.service.ts b/frontend/src/app/GN2CommonModule/form/data-form.service.ts index a39080915e..36fe110159 100644 --- a/frontend/src/app/GN2CommonModule/form/data-form.service.ts +++ b/frontend/src/app/GN2CommonModule/form/data-form.service.ts @@ -24,7 +24,7 @@ export const FormatMapMime = new Map([ @Injectable() export class DataFormService { private _blob: Blob; - constructor(private _http: HttpClient) {} + constructor(private _http: HttpClient) { } getNomenclature( codeNomenclatureType: string, @@ -484,8 +484,8 @@ export class DataFormService { application === 'GeoNature' ? `${AppConfig.API_ENDPOINT}/${api}` : application === 'TaxHub' - ? `${AppConfig.API_TAXHUB}/${api}` - : api; + ? `${AppConfig.API_TAXHUB}/${api}` + : api; return this._http.get(url, { params: queryString }); } @@ -545,4 +545,8 @@ export class DataFormService { addPlace(place) { return this._http.post(`${AppConfig.API_ENDPOINT}/gn_commons/place`, place); } + + getProfile(cdRef) { + return this._http.get(`${AppConfig.API_ENDPOINT}/gn_profiles/valid_profile/${cdRef}`) + } } diff --git a/frontend/src/app/shared/syntheseSharedModule/synthese-info-obs/synthese-info-obs.component.html b/frontend/src/app/shared/syntheseSharedModule/synthese-info-obs/synthese-info-obs.component.html index 2443ab67d0..5ea3c29319 100644 --- a/frontend/src/app/shared/syntheseSharedModule/synthese-info-obs/synthese-info-obs.component.html +++ b/frontend/src/app/shared/syntheseSharedModule/synthese-info-obs/synthese-info-obs.component.html @@ -404,7 +404,12 @@
Médias {{row.comment}} - + + +

Profil

+ +

+$

\ No newline at end of file diff --git a/frontend/src/app/shared/syntheseSharedModule/synthese-info-obs/synthese-info-obs.component.ts b/frontend/src/app/shared/syntheseSharedModule/synthese-info-obs/synthese-info-obs.component.ts index 1181cf0298..ac43b639f5 100644 --- a/frontend/src/app/shared/syntheseSharedModule/synthese-info-obs/synthese-info-obs.component.ts +++ b/frontend/src/app/shared/syntheseSharedModule/synthese-info-obs/synthese-info-obs.component.ts @@ -25,6 +25,7 @@ export class SyntheseInfoObsComponent implements OnInit { public isLoading = false; public email; public mailto: String; + public profile: any; public validationColor = { '0': '#FFFFFF', '1': '#8BC34A', @@ -45,6 +46,9 @@ export class SyntheseInfoObsComponent implements OnInit { ngOnInit() { this.loadOneSyntheseReleve(this.idSynthese); this.loadValidationHistory(this.uuidSynthese); + this._gnDataService.getProfile(60577).subscribe(profil => { + this.profile = profil; + }); } loadOneSyntheseReleve(idSynthese) {