mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-23 08:38:02 +00:00

* Catchup frontend for internal development changes * Revert accidental change to test file
57 lines
1.4 KiB
Handlebars
57 lines
1.4 KiB
Handlebars
<ModalDialog
|
|
@overlayClass="notification-overlay"
|
|
@containerClassNames="notification-confirm-modal {{this.modalClass}}"
|
|
@onClose={{fn this.onCloseTabContentModal}}
|
|
>
|
|
<header class="{{this.modalClass}}__header">
|
|
<h3 class="{{this.modalClass}}__title">
|
|
{{@title}}
|
|
</h3>
|
|
<button
|
|
type="button"
|
|
class="{{this.modalClass}}__close"
|
|
{{action this.onCloseTabContentModal}}
|
|
>
|
|
×
|
|
</button>
|
|
</header>
|
|
|
|
<IvyTabs @selection={{@currentTab}} as |Tabs|>
|
|
<nav
|
|
role="navigation"
|
|
aria-label="Entity Section"
|
|
>
|
|
<div aria-hidden="true">
|
|
<Tabs.tablist class="{{this.modalClass}}__tab-list" as |TabList|>
|
|
{{#each @tabs as |tab|}}
|
|
<TabList.tab
|
|
@model={{tab.id}}
|
|
@on-select={{action this.tabSelectionDidChange}}
|
|
>
|
|
{{tab.title}}
|
|
</TabList.tab>
|
|
{{/each}}
|
|
</Tabs.tablist>
|
|
</div>
|
|
</nav>
|
|
|
|
<div class="{{this.modalClass}}__tab-container">
|
|
{{#each @tabs as |tab|}}
|
|
<Tabs.tabpanel @model={{tab.id}}>
|
|
|
|
{{#if hasBlock}}
|
|
{{yield (hash content=(component tab.contentComponent options=tab.options))}}
|
|
{{else}}
|
|
{{component
|
|
tab.contentComponent
|
|
options=tab.options
|
|
}}
|
|
{{/if}}
|
|
|
|
</Tabs.tabpanel>
|
|
{{/each}}
|
|
</div>
|
|
</IvyTabs>
|
|
|
|
</ModalDialog>
|