From 9d716418d25d605f77036bd9e8129192cc6cd4c5 Mon Sep 17 00:00:00 2001 From: Ronan Date: Wed, 12 Jun 2024 14:04:19 +0200 Subject: [PATCH] =?UTF-8?q?Affichage=20de=20toutes=20les=20donn=C3=A9es=20?= =?UTF-8?q?t=C3=A9l=C3=A9chargeables=20d'une=20subRessource=20#15?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ign-api-produit.component.html | 15 +++++---------- .../ign-api-produit/ign-api-produit.component.ts | 3 ++- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/libs/feature/record/src/lib/ign-api-produit/ign-api-produit.component.html b/libs/feature/record/src/lib/ign-api-produit/ign-api-produit.component.html index b76a2f0e89..c8c29f5cc0 100644 --- a/libs/feature/record/src/lib/ign-api-produit/ign-api-produit.component.html +++ b/libs/feature/record/src/lib/ign-api-produit/ign-api-produit.component.html @@ -23,16 +23,11 @@ >datahub.search.filter.generatedByWfs -
- Télécharger +
+ {{entry['link'][0]['href'].split("/").slice(-1)}} + cloud_download +
-
-
- - cloud_download - -
- - + diff --git a/libs/feature/record/src/lib/ign-api-produit/ign-api-produit.component.ts b/libs/feature/record/src/lib/ign-api-produit/ign-api-produit.component.ts index 728016d54c..5650cc2d8d 100644 --- a/libs/feature/record/src/lib/ign-api-produit/ign-api-produit.component.ts +++ b/libs/feature/record/src/lib/ign-api-produit/ign-api-produit.component.ts @@ -27,9 +27,10 @@ export class IgnApiProduitComponent implements OnInit { ngOnInit(): void { this.liste$ = this.http.get(this.link['id']).pipe( - map((response) => response['entry'][0]['link']), + map((response) => response['entry'], // tap(el=> console.log(el)), ) + ) } downloadListe():void{