diff --git a/frontend/src/app/api/taxhub.service.ts b/frontend/src/app/api/taxhub.service.ts index 621f58cd..5a854bb9 100644 --- a/frontend/src/app/api/taxhub.service.ts +++ b/frontend/src/app/api/taxhub.service.ts @@ -15,7 +15,7 @@ import { TaxonomyList, Taxon, Media, Attribut, MediaBase, ObservationFeature, Ob }) export class TaxhubService { private readonly URL = MainConfig.API_ENDPOINT; - taxon: any; + taxon: Taxon; MEDIAS_TYPES_ALLOWED = ["Photo_gncitizen", "Photo_principale", "Photo"] ATTRIBUTS_ALLOWED = "Nom_francais" diff --git a/frontend/src/app/programs/observations/form/form.component.ts b/frontend/src/app/programs/observations/form/form.component.ts index 735c7d80..29b87ed1 100644 --- a/frontend/src/app/programs/observations/form/form.component.ts +++ b/frontend/src/app/programs/observations/form/form.component.ts @@ -43,7 +43,7 @@ import { MapService } from '../../base/map/map.service'; import { GNCFrameworkComponent } from '../../base/jsonform/framework/framework.component'; import { RefGeoService } from '../../../api/refgeo.service'; import { ControlPosition } from 'leaflet'; -import { TaxhubService } from 'src/app/api/taxhub.service'; +import { TaxhubService } from '../../../api/taxhub.service'; // declare let $: any; diff --git a/frontend/src/app/programs/observations/modalflow/steps/congrats/congrats.component.ts b/frontend/src/app/programs/observations/modalflow/steps/congrats/congrats.component.ts index 91e174ed..aa2a4357 100644 --- a/frontend/src/app/programs/observations/modalflow/steps/congrats/congrats.component.ts +++ b/frontend/src/app/programs/observations/modalflow/steps/congrats/congrats.component.ts @@ -1,7 +1,7 @@ import { COMPILER_OPTIONS, Component, Input, ViewEncapsulation } from '@angular/core'; import { IFlowComponent } from '../../flow/flow'; import { MainConfig } from '../../../../../../conf/main.config'; -import { TaxhubService } from 'src/app/api/taxhub.service'; +import { TaxhubService } from '../../../../../api/taxhub.service'; @Component({ templateUrl: './congrats.component.html', diff --git a/frontend/src/app/synthesis/species/species.component.ts b/frontend/src/app/synthesis/species/species.component.ts index 8a587f7e..437d950c 100644 --- a/frontend/src/app/synthesis/species/species.component.ts +++ b/frontend/src/app/synthesis/species/species.component.ts @@ -2,7 +2,7 @@ import { Component, OnInit, ViewEncapsulation } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { TaxhubService } from '../../api/taxhub.service'; -import { TaxonBase } from 'src/app/programs/observations/observation.model'; +import { Taxon } from '../../programs/observations/observation.model'; @Component({ selector: 'app-species', @@ -13,7 +13,7 @@ import { TaxonBase } from 'src/app/programs/observations/observation.model'; export class SpeciesComponent implements OnInit { title = 'fiche espèce'; specie_id: any; - taxon: TaxonBase; + taxon: Taxon; constructor(private route: ActivatedRoute, public taxhub: TaxhubService) { this.route.params.subscribe((params) => {