Error when loading handled

pull/22105/head
Phil Renaud 2025-01-23 15:53:57 -05:00
parent 5f5c255d0f
commit 9b8bfa8e33
1 changed files with 8 additions and 0 deletions

View File

@ -41,6 +41,14 @@ as |item|}}
@onchange={{action (mut token) value="data"}}
@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}}
<Hds::Alert @type="inline" @color="highlight" class="mb-3 mt-2" @icon="token" as |A|>
<A.Title>Your Access Token</A.Title>