mirror of
https://github.com/status-im/consul.git
synced 2025-01-27 05:57:03 +00:00
b025319756
* ui: Surface 'detail' of API errors in the error page * Make UI generated 404s look less bare
39 lines
846 B
Handlebars
39 lines
846 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 (and (env 'CONSUL_ACLS_ENABLED') allowLogin)}}
|
|
<label for="login-toggle" data-test-empty-state-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}}
|
|
</label>
|
|
{{/if}}
|
|
</div>
|
|
{{/yield-slot}}
|
|
{{#yield-slot name="actions"}}
|
|
<ul>
|
|
{{yield}}
|
|
</ul>
|
|
{{/yield-slot}}
|
|
</div> |