diff options
author | Dessalines <tyhou13@gmx.com> | 2019-10-19 17:46:29 -0700 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-10-19 17:46:29 -0700 |
commit | 02dd9ac32a491e7ee41a012b11ff90666455066b (patch) | |
tree | 446a4d3acff2b3b7f17e6ce3a9555143a6f79d53 /ui/src/components/search.tsx | |
parent | 5547ecdeafe09be78c76236fbf01e73c638addf2 (diff) |
Adding username mentions / tagging from comments.
- Fixes #293
Diffstat (limited to 'ui/src/components/search.tsx')
-rw-r--r-- | ui/src/components/search.tsx | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/ui/src/components/search.tsx b/ui/src/components/search.tsx index daf9aa2d..68b4ee88 100644 --- a/ui/src/components/search.tsx +++ b/ui/src/components/search.tsx @@ -396,11 +396,16 @@ export class Search extends Component<any, SearchState> { let res = this.state.searchResponse; return ( <div> - {res && res.op && res.posts.length == 0 && res.comments.length == 0 && ( - <span> - <T i18nKey="no_results">#</T> - </span> - )} + {res && + res.op && + res.posts.length == 0 && + res.comments.length == 0 && + res.communities.length == 0 && + res.users.length == 0 && ( + <span> + <T i18nKey="no_results">#</T> + </span> + )} </div> ); } @@ -420,7 +425,6 @@ export class Search extends Component<any, SearchState> { } search() { - // TODO community let form: SearchForm = { q: this.state.q, type_: SearchType[this.state.type_], |