fixed error for mobile version
This commit is contained in:
@@ -73,6 +73,7 @@ export class SearchModalComponent {
|
||||
// this.loadCities();
|
||||
this.loadCounties();
|
||||
this.updateSelectedPropertyType();
|
||||
this.modalService.sendCriteria(this.criteria);
|
||||
}
|
||||
hasActiveFilters(): boolean {
|
||||
return !!(
|
||||
@@ -241,6 +242,11 @@ export class SearchModalComponent {
|
||||
closeModal() {
|
||||
console.log('Closing modal');
|
||||
}
|
||||
closeAndSearch() {
|
||||
this.modalService.accept();
|
||||
this.searchService.search(this.criteria);
|
||||
this.close();
|
||||
}
|
||||
isTypeOfBusinessClicked(v: KeyValueStyle) {
|
||||
return this.criteria.types.find(t => t === v.value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user