discourse-data-explorer/assets/javascripts/discourse/components/query-results-wrapper.hbs

11 lines
293 B
Handlebars

{{#if @results}}
<div class="query-results">
{{#if @showResults}}
<QueryResult @query={{@query}} @content={{@results}} />
{{else}}
{{#each @results.errors as |err|}}
<pre class="query-error"><code>{{~err}}</code></pre>
{{/each}}
{{/if}}
</div>
{{/if}}