Umbau: header & businessListing

This commit is contained in:
2024-07-03 18:51:01 +02:00
parent 958f0afd9b
commit 1ccd1d174c
19 changed files with 246 additions and 304 deletions

View File

@@ -79,7 +79,9 @@ export class BusinessListingsComponent {
this.init();
});
}
async ngOnInit() {}
async ngOnInit() {
//initFlowbite();
}
async init() {
const statesResult = await this.listingsService.getAllStates('business');
this.states = statesResult.map(ls => ({ name: this.selectOptions.getState(ls.state as string), value: ls.state, count: ls.count }));
@@ -94,8 +96,8 @@ export class BusinessListingsComponent {
const listingReponse = await this.listingsService.getListings(this.criteria, 'business');
this.listings = listingReponse.data;
this.totalRecords = listingReponse.total;
this.cdRef.markForCheck();
this.cdRef.detectChanges();
// this.cdRef.markForCheck();
// this.cdRef.detectChanges();
}
onPageChange(event: any) {
this.criteria.start = event.first;