diff options
author | benal01 <bja4245@rit.edu> | 2025-03-17 23:27:07 -0400 |
---|---|---|
committer | benal01 <bja4245@rit.edu> | 2025-03-17 23:27:07 -0400 |
commit | 5df010d50b8cb82cea889678e68b84754cfef943 (patch) | |
tree | 4a017dcfbcf244809721106375ab87d4c236304b | |
parent | ab16240d5b6bba5c62c66876c8cb7b11af565413 (diff) | |
download | JellySolutions-5df010d50b8cb82cea889678e68b84754cfef943.tar.gz JellySolutions-5df010d50b8cb82cea889678e68b84754cfef943.tar.bz2 JellySolutions-5df010d50b8cb82cea889678e68b84754cfef943.zip |
search results status visible before they should be
-rw-r--r-- | ufund-ui/src/app/components/need-list/need-list.component.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ufund-ui/src/app/components/need-list/need-list.component.ts b/ufund-ui/src/app/components/need-list/need-list.component.ts index b21979f..fc2a594 100644 --- a/ufund-ui/src/app/components/need-list/need-list.component.ts +++ b/ufund-ui/src/app/components/need-list/need-list.component.ts @@ -24,7 +24,8 @@ export class NeedListComponent { ngOnInit(): void { this.refresh() - // this.close(); + + this.close(); } private showElement(element: any) { @@ -56,6 +57,7 @@ export class NeedListComponent { close() { this.hideElement(document.getElementById('search-form')); this.showElement(document.getElementById('search-button')); + this.hideElement(document.getElementById('search-status')); } private searchDelay: any; @@ -73,6 +75,8 @@ export class NeedListComponent { this.cupboardService.searchNeeds(currentSearchValue).subscribe((n) => { this.searchResults = n; console.log(currentSearchValue, this.searchResults); + this.showElement(document.getElementById('search-results')); + this.showElement(document.getElementById('search-status')); if (this.searchResults.length === this.needs.length) { this.updateSearchStatus("Please refine your search"); this.searchResults = []; |