working in progress

This commit is contained in:
OnlyPapy98
2026-01-09 10:40:55 +01:00
parent 665c15b3d7
commit 6fbda8dc5e
3 changed files with 4 additions and 4 deletions

View File

@@ -110,7 +110,7 @@ export class PointVentePage {
renderStatutBadge(statut: PointVenteStatut | string | undefined): string { renderStatutBadge(statut: PointVenteStatut | string | undefined): string {
if (!statut) return ''; if (!statut) return '';
const s = String(statut).toUpperCase(); const s = String(statut).toUpperCase();
if (s === 'ACTIVE') { if (s === 'ACTIF') {
return `<span class="inline-flex items-center gap-1 px-2 py-1 rounded bg-green-500/10 text-green-600 dark:text-green-400 text-xs font-medium"><i class="icon-check"></i> Actif</span>`; return `<span class="inline-flex items-center gap-1 px-2 py-1 rounded bg-green-500/10 text-green-600 dark:text-green-400 text-xs font-medium"><i class="icon-check"></i> Actif</span>`;
} }
return `<span class="inline-flex items-center gap-1 px-2 py-1 rounded bg-gray-500/10 text-gray-600 dark:text-gray-400 text-xs font-medium"><i class="icon-x"></i> Inactif</span>`; return `<span class="inline-flex items-center gap-1 px-2 py-1 rounded bg-gray-500/10 text-gray-600 dark:text-gray-400 text-xs font-medium"><i class="icon-x"></i> Inactif</span>`;

View File

@@ -74,10 +74,10 @@ export class TpeSelect {
this.tpeService.list(params).subscribe({ this.tpeService.list(params).subscribe({
next: (res) => { next: (res) => {
// Filtrer : TPE non assignés ou déjà assignés à cet agent // 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( const available = res.content.filter(
(t) => (t) =>
!t.assigned || t.agentConnecteId === this.agent?.id (t.assigned && this.selectedIds().has(String(t.id))) || !t.assigned
); );
this.tpes.set(available); this.tpes.set(available);
this.total.set(res.pageable.total); this.total.set(res.pageable.total);

View File

@@ -1,5 +1,5 @@
export const environment = { export const environment = {
production: false, production: false,
apiBaseUrl: 'http://192.168.40.212:8080', apiBaseUrl: 'http://192.168.1.235:8381',
depouillementBaseUrl: 'http://192.168.1.235:8383' depouillementBaseUrl: 'http://192.168.1.235:8383'
}; };