From 6fbda8dc5eb0bcf4d2c9924d488946fae6e91714 Mon Sep 17 00:00:00 2001 From: OnlyPapy98 Date: Fri, 9 Jan 2026 10:40:55 +0100 Subject: [PATCH] working in progress --- src/app/dashboard/pages/point-vente/point-vente.ts | 2 +- src/app/dashboard/pages/tpe-select/tpe-select.ts | 4 ++-- src/environments/environment.development.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/dashboard/pages/point-vente/point-vente.ts b/src/app/dashboard/pages/point-vente/point-vente.ts index a974af5..4adb73b 100644 --- a/src/app/dashboard/pages/point-vente/point-vente.ts +++ b/src/app/dashboard/pages/point-vente/point-vente.ts @@ -110,7 +110,7 @@ export class PointVentePage { renderStatutBadge(statut: PointVenteStatut | string | undefined): string { if (!statut) return ''; const s = String(statut).toUpperCase(); - if (s === 'ACTIVE') { + if (s === 'ACTIF') { return ` Actif`; } return ` Inactif`; diff --git a/src/app/dashboard/pages/tpe-select/tpe-select.ts b/src/app/dashboard/pages/tpe-select/tpe-select.ts index 500bf28..59d216f 100644 --- a/src/app/dashboard/pages/tpe-select/tpe-select.ts +++ b/src/app/dashboard/pages/tpe-select/tpe-select.ts @@ -74,10 +74,10 @@ export class TpeSelect { this.tpeService.list(params).subscribe({ next: (res) => { // Filtrer : TPE non assignés ou déjà assignés à cet agent - // console.log(res.content); + //console.log(res.content); const available = res.content.filter( (t) => - !t.assigned || t.agentConnecteId === this.agent?.id + (t.assigned && this.selectedIds().has(String(t.id))) || !t.assigned ); this.tpes.set(available); this.total.set(res.pageable.total); diff --git a/src/environments/environment.development.ts b/src/environments/environment.development.ts index 0a134e1..f6d87ec 100644 --- a/src/environments/environment.development.ts +++ b/src/environments/environment.development.ts @@ -1,5 +1,5 @@ export const environment = { production: false, - apiBaseUrl: 'http://192.168.40.212:8080', + apiBaseUrl: 'http://192.168.1.235:8381', depouillementBaseUrl: 'http://192.168.1.235:8383' };