gestion de l'affichage des annonces dans la partie user
This commit is contained in:
parent
7ea0a5eb97
commit
b0b17c062d
14 changed files with 57 additions and 101 deletions
|
|
@ -84,9 +84,12 @@ export class PageAdListAdvertiserComponent implements AfterViewInit
|
|||
console.log(retour);
|
||||
}
|
||||
else {
|
||||
for(let advert of retour.data) this.tabAdvertWithCountViews.push(this.advertToAdvertWithCountViews(advert));
|
||||
this.dataSource = new MatTableDataSource<AdvertWithCountViews>();
|
||||
this.onFilter();
|
||||
if(retour.data.length !== 0)
|
||||
{
|
||||
for(let advert of retour.data) this.tabAdvertWithCountViews.push(this.advertToAdvertWithCountViews(advert));
|
||||
this.dataSource = new MatTableDataSource<AdvertWithCountViews>();
|
||||
this.onFilter();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue