46 lines
1.1 KiB
Handlebars
46 lines
1.1 KiB
Handlebars
<section class="user-content">
|
|
<h1>{{this.model.name}}</h1>
|
|
<p>{{this.model.description}}</p>
|
|
|
|
<form class="query-run" {{on "submit" this.run}}>
|
|
<ParamInputsWrapper
|
|
@hasParams={{this.hasParams}}
|
|
@params={{this.model.params}}
|
|
@paramInfo={{this.model.param_info}}
|
|
@updateParams={{this.updateParams}}
|
|
/>
|
|
|
|
<DButton
|
|
@action={{this.run}}
|
|
@icon="play"
|
|
@label="explorer.run"
|
|
@class="btn-primary"
|
|
@type="submit"
|
|
/>
|
|
|
|
<DButton
|
|
@action={{this.toggleBookmark}}
|
|
@label={{this.bookmarkLabel}}
|
|
@icon={{this.bookmarkIcon}}
|
|
@class={{this.bookmarkClassName}}
|
|
/>
|
|
</form>
|
|
|
|
<ConditionalLoadingSpinner @condition={{this.loading}} />
|
|
|
|
{{#if this.results}}
|
|
<div class="query-results">
|
|
{{#if this.showResults}}
|
|
<QueryResult
|
|
@query={{this.model}}
|
|
@content={{this.results}}
|
|
@group={{this.group}}
|
|
/>
|
|
{{else}}
|
|
{{#each this.results.errors as |err|}}
|
|
<pre class="query-error"><code>{{~err}}</code></pre>
|
|
{{/each}}
|
|
{{/if}}
|
|
</div>
|
|
{{/if}}
|
|
</section> |