aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/need-list/need-list.component.ts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ufund-ui/src/app/components/need-list/need-list.component.ts29
1 files changed, 0 insertions, 29 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 f5d7855..3f77df4 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,38 +24,11 @@ export class NeedListComponent {
this.needs = n;
this.searchResults = this.needs;
});
-
console.log(this.searchResults);
}
ngOnInit(): void {
this.refresh()
- this.close();
- }
-
- private showElement(element: any) {
- if (element){
- element.style.visibility = 'visible';
- element.style.position = 'relative';
- }
- }
-
- private hideElement(element: any) {
- if (element){
- element.style.visibility = 'hidden';
- element.style.position = 'absolute';
- }
- }
-
- open() {
- this.hideElement(document.getElementById('search-button'));
- this.showElement(document.getElementById('search-container'));
- }
-
- close() {
- this.hideElement(document.getElementById('search-container'));
- this.showElement(document.getElementById('search-button'));
- this.hideElement(document.getElementById('search-status'));
}
private searchDelay: any;
@@ -75,8 +48,6 @@ 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'));
});
}
}, 250);