mirror of https://github.com/hashicorp/consul
44 lines
908 B
Handlebars
44 lines
908 B
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: MPL-2.0
|
|
}}
|
|
|
|
{{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}}
|
|
<Hds::Button
|
|
@color='primary'
|
|
@text={{if token.AccessorID 'Log in with a different token' 'Log in'}}
|
|
data-test-empty-state-login
|
|
{{on "click" login}}
|
|
>
|
|
<DataSource
|
|
@src={{uri 'settings://consul:token'}}
|
|
@onchange={{action (mut token) value="data"}}
|
|
/>
|
|
</Hds::Button>
|
|
{{/if}}
|
|
</div>
|
|
{{/yield-slot}}
|
|
{{#yield-slot name="actions"}}
|
|
<ul>
|
|
{{yield}}
|
|
</ul>
|
|
{{/yield-slot}}
|
|
</div> |