Skip to content

Commit

Permalink
Error when loading handled
Browse files Browse the repository at this point in the history
  • Loading branch information
philrenaud committed Jan 23, 2025
1 parent 5f5c255 commit 9b8bfa8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ui/packages/consul-ui/app/templates/settings.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 9b8bfa8

Please sign in to comment.