| ... |
... |
@@ -58,9 +58,8 @@ |
| 58 |
58 |
setSearchText(e) { |
| 59 |
59 |
this.searchText = e.target.value; |
| 60 |
60 |
} |
| 61 |
|
- handleSearch() { |
| 62 |
|
- |
| 63 |
|
- if(this.searchText !== "") { |
|
61 |
+ handleSearch(textSearch) { |
|
62 |
+ if(this.searchText !== "" || textSearch) { |
| 64 |
64 |
if(this.searchText !== this.prevSearchText) { |
| 65 |
65 |
this.prevSearchText = this.searchText; |
| 66 |
66 |
Promise.all([ |
| ... |
... |
@@ -117,7 +117,7 @@ |
| 117 |
117 |
<div> |
| 118 |
118 |
<div> |
| 119 |
119 |
<input @change="${this.setSearchText}" type="text" placeholder="Search..." /> |
| 120 |
|
- <button @click="${this.handleSearch}">Search</button> |
|
119 |
+ <button @click="${() => this.handleSearch(true)}">Search</button> |
| 121 |
121 |
</div> |
| 122 |
122 |
<div> |
| 123 |
123 |
<label><input type="checkbox" @change="${() => this.toggleRoleFilter('administrator')}" .checked="${this.administratorFilter}"/> Administrator</label> |