added edit function

This commit is contained in:
2025-12-12 21:46:16 +01:00
parent a707a33a87
commit 750a0da817
7 changed files with 104 additions and 50 deletions

View File

@@ -79,20 +79,12 @@ export class DelivererTable implements OnInit {
}
try {
const deliverers = updateDelivererComponent.delivererForm.getRawValue();
await firstValueFrom(this.deliverersService.updateDelivererEndpoint(id, deliverers))
this.notificationService.success(
'Success',
'Transporteur modifié'
)
this.notificationService.success('Success', 'Transporteur modifié')
} catch (e) {
console.error(e);
this.notificationService.error(
'Erreur',
'Erreur lors de la modification'
)
this.notificationService.error('Erreur', 'Erreur lors de la modification')
}
}