aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkash Keshav <112591754+domesticchores@users.noreply.github.com>2025-03-17 23:47:08 -0400
committerAkash Keshav <112591754+domesticchores@users.noreply.github.com>2025-03-17 23:47:08 -0400
commit847cdba3b2aa9ffd2eca81080ed4f7a79c283790 (patch)
tree65b5f96776021f5cc4acd8a33cff63c5ac55a017
parent0605637f02285cc2b56679d81f7e0e814dab6092 (diff)
parent1ef3628abc7d511d44f77f82de9d126b5b431a34 (diff)
downloadJellySolutions-847cdba3b2aa9ffd2eca81080ed4f7a79c283790.tar.gz
JellySolutions-847cdba3b2aa9ffd2eca81080ed4f7a79c283790.tar.bz2
JellySolutions-847cdba3b2aa9ffd2eca81080ed4f7a79c283790.zip
Merge branch 'main' of https://github.com/RIT-SWEN-261-02/team-project-2245-swen-261-02-2b-jellysolutions
-rw-r--r--ufund-ui/src/app/components/need-list/need-list.component.ts6
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 = [];