Prior:
Entering `test after:5` and then removing the 5 via the search text field would result in the UI not updating
After:
UI updates after half a second
Removing it from the UI, removes it from the search field immediately.
Change the regex to detect filter words. This now matches what happens in search.rb, which gives a lot more flexibility (such as iterating over multiple `in:` terms)
Return [] when searchTerm is empty
Move .trim() to this.set('searchTerm', searchTerm) so it doesn't run twice (which was very obvious when watching the search term field)
More refactoring to make this a bit less complex
Update code based on review comments
FEATURE: Add common `in:` options
|
||
|---|---|---|
| .. | ||
| application.js.es6 | ||
| as-hash.js.es6 | ||
| border-color.js.es6 | ||
| bound-avatar-template.js.es6 | ||
| bound-avatar.js.es6 | ||
| bound-category-link.js.es6 | ||
| bound-date.js.es6 | ||
| capitalize-string.js.es6 | ||
| category-badge.js.es6 | ||
| category-link.js.es6 | ||
| cold-age-class.js.es6 | ||
| cook-text.js.es6 | ||
| custom-html.js.es6 | ||
| dash-if-empty.js.es6 | ||
| discouse-tag.js.es6 | ||
| fa-icon-node.js.es6 | ||
| format-age.js.es6 | ||
| format-date.js.es6 | ||
| icon-or-image.js.es6 | ||
| inline-date.js.es6 | ||
| loading-spinner.es6 | ||
| max-usernames.js.es6 | ||
| node.js.es6 | ||
| period-title.js.es6 | ||
| plugin-outlet.js.es6 | ||
| raw.js.es6 | ||
| replace-emoji.js.es6 | ||
| shorten-url.js.es6 | ||
| topic-link.js.es6 | ||
| user-avatar.js.es6 | ||
| user-status.js.es6 | ||