Files
discourse-data-explorer/assets/javascripts/discourse/components/explorer-schema.hbs
T

31 lines
769 B
Handlebars
Raw Normal View History

2022-12-16 11:51:36 -06:00
{{#if this.hideSchema}}
<DButton
@action={{this.expandSchema}}
@icon="chevron-left"
2024-01-15 12:17:19 +01:00
class="no-text unhide"
2022-12-16 11:51:36 -06:00
/>
{{else}}
<div class="schema">
2022-12-16 11:51:36 -06:00
<div class="schema-search inline-form full-width">
<input
type="text"
{{on "input" (action "filterChanged" value="target.value")}}
2022-12-16 11:51:36 -06:00
/>
<DButton
@action={{this.collapseSchema}}
@icon="chevron-right"
2024-01-15 12:17:19 +01:00
class="no-text"
2022-12-16 11:51:36 -06:00
/>
</div>
<div class="schema-container">
<ConditionalLoadingSpinner @condition={{this.loading}}>
2022-12-16 11:51:36 -06:00
<ul>
{{#each this.filteredTables as |table|}}
<ExplorerSchema::OneTable @table={{table}} />
2022-12-16 11:51:36 -06:00
{{/each}}
</ul>
</ConditionalLoadingSpinner>
</div>
2022-12-16 11:51:36 -06:00
</div>
{{/if}}