Skip to content

Commit

Permalink
Merge pull request #530 from rahulramakrishnan3/release-3.0.0
Browse files Browse the repository at this point in the history
bug fix 1403
  • Loading branch information
Cafnanc authored Jul 23, 2024
2 parents 2e6ecab + 4d37239 commit e095e0e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
5 changes: 3 additions & 2 deletions src/app/pages/home-search/home-search.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,13 @@ export class HomeSearchPage implements OnInit {
}

ionViewDidLeave(){
this.showSelectedCriteria = "";
this.searchText = "";
this.criteriaChip = "";
this.showSelectedCriteria = "";
this.chips = [];
this.utilService.subscribeSearchText('');
this.utilService.subscribeCriteriaChip('')
this.utilService.subscribeCriteriaChip('');
this.urlQueryData = null;
}

ngOnDestroy() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ export class MentorSearchDirectoryPage implements OnInit {
private toast: ToastService
) { }

async ngOnInit() {
ngOnInit() { }

async ionViewWillEnter() {
this.getMentors();
this.permissionService.getPlatformConfig().then((config)=>{
this.overlayChips = config?.result?.search_config?.search?.mentor?.fields;
Expand Down Expand Up @@ -191,8 +193,7 @@ export class MentorSearchDirectoryPage implements OnInit {
this.showSelectedCriteria = "";
this.selectedChipName = null;
this.chips = [];
this.utilService.subscribeSearchText('');
this.utilService.subscribeCriteriaChip('')
this.urlQueryData = null;
}

}
4 changes: 2 additions & 2 deletions src/app/pages/tabs/home/home.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ <h3>
<div class="d-flex flex-justify-center my-8">
<ion-searchbar class="search-bar" placeholder="{{'HOME_SEARCH_PLACEHOLDER' | translate}}"
cdkOverlayOrigin #trigger="cdkOverlayOrigin" (click)="isOpen = !isOpen"
#q [value]="searchText"
(keyup.enter)="search(q.value)">
[(ngModel)]="searchText"
(keyup.enter)="search(searchText)">
</ion-searchbar>
</div>
<!--</ion-col>
Expand Down
6 changes: 0 additions & 6 deletions src/app/pages/tabs/home/home.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,8 @@ export class HomePage implements OnInit {
criteriaChip: any;
searchText: string;
constructor(
private http: HttpClient,
private router: Router,
private navController: NavController,
private profileService: ProfileService,
private loaderService: LoaderService,
private httpService: HttpService,
private sessionService: SessionService,
private modalController: ModalController,
private userService: UserService,
Expand Down Expand Up @@ -157,8 +153,6 @@ export class HomePage implements OnInit {
}else {
this.toast.showToast("ENTER_MIN_CHARACTER","danger");
}
this.criteriaChip = null;
this.searchText = null;
}
getUser() {
this.profileService.profileDetails().then(data => {
Expand Down

0 comments on commit e095e0e

Please sign in to comment.