aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'ufund-ui/src/app')
-rw-r--r--ufund-ui/src/app/components/cupboard/cupboard.component.html2
-rw-r--r--ufund-ui/src/app/components/need-list/need-list.component.ts6
2 files changed, 6 insertions, 2 deletions
diff --git a/ufund-ui/src/app/components/cupboard/cupboard.component.html b/ufund-ui/src/app/components/cupboard/cupboard.component.html
index 172360d..0d64475 100644
--- a/ufund-ui/src/app/components/cupboard/cupboard.component.html
+++ b/ufund-ui/src/app/components/cupboard/cupboard.component.html
@@ -19,7 +19,7 @@
<input type="submit" value="Submit">
</form>
<button (click)="back()">Close</button>
- <span *ngIf="statusText">{{statusText | async}}</span>
+ <span *ngIf="statusText">‼️{{statusText | async}}</span>
</div>
<div id="update-form">
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 = [];