diff options
author | Gunther6070 <haydenhartman10@yahoo.com> | 2025-03-18 07:49:29 -0400 |
---|---|---|
committer | Gunther6070 <haydenhartman10@yahoo.com> | 2025-03-18 07:49:29 -0400 |
commit | bd41fc58b5537a12072625bbf75baf75d5ed2274 (patch) | |
tree | 64f6b52fbd4714a29be0102ac988cb7ab02dbb33 /ufund-ui/src/app/components/need-list | |
parent | 03077b567f41aa639efa065742481e91830ade57 (diff) | |
parent | f063bf6e8634386f6ae3a3cf13fe2228e74454c9 (diff) | |
download | JellySolutions-bd41fc58b5537a12072625bbf75baf75d5ed2274.tar.gz JellySolutions-bd41fc58b5537a12072625bbf75baf75d5ed2274.tar.bz2 JellySolutions-bd41fc58b5537a12072625bbf75baf75d5ed2274.zip |
Merge branch 'main' into funding_basket
Diffstat (limited to 'ufund-ui/src/app/components/need-list')
-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 5bb3887..e1c0de1 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 = []; |