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:
Justin DiRose 2020-02-06 09:41:29 -06:00
parent cf0d3d62c1
commit 2084327a2f
1 changed files with 68 additions and 68 deletions

View File

@ -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>