mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
braces added for if condition
This commit is contained in:
parent
fc95764f60
commit
f373e3ac8d
1 changed files with 9 additions and 8 deletions
|
@ -97,14 +97,15 @@ export default createWidget('search-menu', {
|
||||||
const results = [this.attach('search-term', { value: searchData.term, contextEnabled }),
|
const results = [this.attach('search-term', { value: searchData.term, contextEnabled }),
|
||||||
this.attach('search-context', { contextEnabled })];
|
this.attach('search-context', { contextEnabled })];
|
||||||
|
|
||||||
if (searchData.term)
|
if (searchData.term) {
|
||||||
if (searchData.loading) {
|
if (searchData.loading) {
|
||||||
results.push(h('div.searching', h('div.spinner')));
|
results.push(h('div.searching', h('div.spinner')));
|
||||||
} else {
|
} else {
|
||||||
results.push(this.attach('search-menu-results', { term: searchData.term,
|
results.push(this.attach('search-menu-results', { term: searchData.term,
|
||||||
noResults: searchData.noResults,
|
noResults: searchData.noResults,
|
||||||
results: searchData.results,
|
results: searchData.results,
|
||||||
invalidTerm: searchData.invalidTerm }));
|
invalidTerm: searchData.invalidTerm }));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return results;
|
return results;
|
||||||
|
|
Loading…
Reference in a new issue