FIX: Stop displaying empty topics message on empty search term
When no topics found with a search term and the search term was cleared, the no topics error would show. This commit fixes that behavior by putting the error inside the loading component.
This commit is contained in:
parent
cf0d3d62c1
commit
2084327a2f
|
@ -3,10 +3,10 @@
|
||||||
searchTerm=(readonly searchTerm)
|
searchTerm=(readonly searchTerm)
|
||||||
onSearch=(action "performSearch")
|
onSearch=(action "performSearch")
|
||||||
}}
|
}}
|
||||||
|
{{#conditional-loading-spinner condition=isLoading}}
|
||||||
{{#if emptyTopics}}
|
{{#if emptyTopics}}
|
||||||
<span class="no-topics-found">{{i18n 'knowledge_explorer.no_topics'}}</span>
|
<span class="no-topics-found">{{i18n 'knowledge_explorer.no_topics'}}</span>
|
||||||
{{else}}
|
{{else}}
|
||||||
{{#conditional-loading-spinner condition=isLoading}}
|
|
||||||
<div class="knowledge-explorer-browse">
|
<div class="knowledge-explorer-browse">
|
||||||
{{#if site.mobileView}}
|
{{#if site.mobileView}}
|
||||||
{{#unless selectedTopic}}
|
{{#unless selectedTopic}}
|
||||||
|
@ -73,6 +73,6 @@
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
{{/conditional-loading-spinner}}
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
{{/conditional-loading-spinner}}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue