From 51d24d36b6e575deac147bb53bcbd46b6b457f84 Mon Sep 17 00:00:00 2001 From: Ronan Date: Thu, 24 Oct 2024 11:59:25 +0200 Subject: [PATCH 1/2] =?UTF-8?q?fix(formapi):=20R=C3=A9solution=20du=20prob?= =?UTF-8?q?l=C3=A8me=20qui=20faisait=20que=20lorsque=20l'on=20faisait=20pl?= =?UTF-8?q?us=20de=20r=C3=A9sultat=20et=20qu'on=20setup=20un=20format,=20u?= =?UTF-8?q?n=20crs=20ou=20sa=20zone,=20le=20form=20n'affichait=20rien?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../record/src/lib/ign-api-dl/ign-api-dl.component.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libs/feature/record/src/lib/ign-api-dl/ign-api-dl.component.ts b/libs/feature/record/src/lib/ign-api-dl/ign-api-dl.component.ts index 50e39d9ec4..61b5b75fb6 100644 --- a/libs/feature/record/src/lib/ign-api-dl/ign-api-dl.component.ts +++ b/libs/feature/record/src/lib/ign-api-dl/ign-api-dl.component.ts @@ -157,15 +157,15 @@ export class IgnApiDlComponent implements OnInit { setZone(value: string) { if (this.bucketPromisesZone.map((choice) => choice.value).includes(value)) { - this.zone$.next(value) this.resetPage() + this.zone$.next(value) } } setCrs(value: string) { if (this.bucketPromisesCrs.map((choice) => choice.value).includes(value)) { - this.crs$.next(value) this.resetPage() + this.crs$.next(value) } } @@ -173,8 +173,8 @@ export class IgnApiDlComponent implements OnInit { if ( this.bucketPromisesFormat.map((choice) => choice.value).includes(value) ) { - this.format$.next(value) this.resetPage() + this.format$.next(value) } } @@ -194,6 +194,7 @@ export class IgnApiDlComponent implements OnInit { } resetPage(): void { this.page$.next('0') + this.size$.next(this.initialLimit) } async getCapabilities() { From 87973b7ba7485dc7217144d35348ffbd597a6d08 Mon Sep 17 00:00:00 2001 From: Ronan Date: Tue, 5 Nov 2024 11:51:01 +0100 Subject: [PATCH 2/2] =?UTF-8?q?feat(formapi):=20Modification=20de=20la=20r?= =?UTF-8?q?=C3=A9initialisation=20de=20la=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/feature/record/src/lib/ign-api-dl/ign-api-dl.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/feature/record/src/lib/ign-api-dl/ign-api-dl.component.ts b/libs/feature/record/src/lib/ign-api-dl/ign-api-dl.component.ts index 73a1944e97..44bd0c1a2f 100644 --- a/libs/feature/record/src/lib/ign-api-dl/ign-api-dl.component.ts +++ b/libs/feature/record/src/lib/ign-api-dl/ign-api-dl.component.ts @@ -192,8 +192,7 @@ export class IgnApiDlComponent implements OnInit { } resetPage(): void { - this.page$.next('0') - this.size$.next(this.initialLimit) + this.page$.next(1) } async getCapabilities() {