|
|
|
@ -121,11 +121,7 @@ export class FormationsTableComponent implements OnInit { |
|
|
|
|
getStatutsFormation() |
|
|
|
|
{ |
|
|
|
|
this.formationsService.getStatutsFormation().subscribe( |
|
|
|
|
statuts => { |
|
|
|
|
this.statutsFormation = statuts; |
|
|
|
|
// statuts.map(statut => this.idStatuts.push(statut.id));
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
statuts => this.statutsFormation = statuts, |
|
|
|
|
err => console.log(err) |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
@ -141,7 +137,7 @@ export class FormationsTableComponent implements OnInit { |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
this.formationsDisponiblesCountSubscription = this.formationsService.getFormationsCount(this.idAgence,this.idStatuts,this.asc, this.numPage, this.parPage, this.search, this.tri).subscribe( |
|
|
|
|
count => { console.log(count); this.taille=count;}, |
|
|
|
|
count => this.taille=count, |
|
|
|
|
err => console.log(err) |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|