489b60105f
* Add before and after skip links portals * Move EmptyState and ErrorState to use a @login action/function * Move page title setting to the Route component * Add Routes and Outlets everywhere, and use those to access login modal * Add some aria-labels to the modals * Docs * Remove the label/input now we no longer need it, fixup pageobject * Add basic modal docs * Switch out old toggle names for ids * Wrap nspace Route template in a Route component * type > class
42 lines
840 B
Handlebars
42 lines
840 B
Handlebars
{{yield}}
|
|
<div
|
|
class="empty-state"
|
|
...attributes
|
|
>
|
|
{{#if hasHeader}}
|
|
<header>
|
|
{{#yield-slot name="header"}}
|
|
{{yield}}
|
|
{{/yield-slot}}
|
|
{{#yield-slot name="subheader"}}
|
|
{{yield}}
|
|
{{/yield-slot}}
|
|
</header>
|
|
{{/if}}
|
|
{{#yield-slot name="body"}}
|
|
<div>
|
|
{{yield}}
|
|
{{#if login}}
|
|
<Action
|
|
data-test-empty-state-login
|
|
{{on "click" login}}
|
|
>
|
|
<DataSource
|
|
@src="settings://consul:token"
|
|
@onchange={{action (mut token) value="data"}}
|
|
/>
|
|
{{#if token.AccessorID}}
|
|
Log in with a different token
|
|
{{else}}
|
|
Log in
|
|
{{/if}}
|
|
</Action>
|
|
{{/if}}
|
|
</div>
|
|
{{/yield-slot}}
|
|
{{#yield-slot name="actions"}}
|
|
<ul>
|
|
{{yield}}
|
|
</ul>
|
|
{{/yield-slot}}
|
|
</div> |