price optional, better labeling, impr. filter
This commit is contained in:
@@ -77,7 +77,7 @@ export class SearchModalCommercialComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
// Setup debounced search
|
||||
this.searchDebounce$.pipe(debounceTime(400), distinctUntilChanged(), takeUntil(this.destroy$)).subscribe(() => {
|
||||
this.searchDebounce$.pipe(debounceTime(400), takeUntil(this.destroy$)).subscribe(() => {
|
||||
this.triggerSearch();
|
||||
});
|
||||
}
|
||||
@@ -236,7 +236,7 @@ export class SearchModalCommercialComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
// Helper methods
|
||||
private updateCriteria(updates: any): void {
|
||||
public updateCriteria(updates: any): void {
|
||||
if (this.isModal) {
|
||||
// In modal: Update locally only
|
||||
this.criteria = { ...this.criteria, ...updates };
|
||||
@@ -262,7 +262,7 @@ export class SearchModalCommercialComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
private setTotalNumberOfResults(): void {
|
||||
this.numberOfResults$ = this.listingService.getNumberOfListings('commercialProperty');
|
||||
this.numberOfResults$ = this.listingService.getNumberOfListings('commercialProperty', this.criteria);
|
||||
}
|
||||
|
||||
private getDefaultCriteria(): CommercialPropertyListingCriteria {
|
||||
|
||||
Reference in New Issue
Block a user