mirror of https://github.com/hashicorp/consul
Error when loading handled
parent
5f5c255d0f
commit
9b8bfa8e33
|
@ -41,6 +41,14 @@ as |item|}}
|
||||||
@onchange={{action (mut token) value="data"}}
|
@onchange={{action (mut token) value="data"}}
|
||||||
@onerror={{action (mut error) value="error"}}
|
@onerror={{action (mut error) value="error"}}
|
||||||
/>
|
/>
|
||||||
|
{{#if error}}
|
||||||
|
<Hds::Alert @type="inline" @color="highlight" class="mb-3 mt-2" @icon="token" as |A|>
|
||||||
|
<A.Title>Error loading token</A.Title>
|
||||||
|
<A.Description>
|
||||||
|
{{error.message}}
|
||||||
|
</A.Description>
|
||||||
|
</Hds::Alert>
|
||||||
|
{{/if}}
|
||||||
{{#if token}}
|
{{#if token}}
|
||||||
<Hds::Alert @type="inline" @color="highlight" class="mb-3 mt-2" @icon="token" as |A|>
|
<Hds::Alert @type="inline" @color="highlight" class="mb-3 mt-2" @icon="token" as |A|>
|
||||||
<A.Title>Your Access Token</A.Title>
|
<A.Title>Your Access Token</A.Title>
|
||||||
|
|
Loading…
Reference in New Issue