open-consul/ui/packages/consul-ui/app/components/consul/token/notifications/index.hbs

37 lines
1.0 KiB
Handlebars

{{#if (eq @type 'create')}}
{{#if (eq @status 'success') }}
The token has been added.
{{else}}
There was an error adding the token.
{{/if}}
{{else if (eq @type 'update') }}
{{#if (eq @status 'success') }}
The token has been saved.
{{else}}
There was an error saving the token.
{{/if}}
{{ else if (eq @type 'delete')}}
{{#if (eq @status 'success') }}
The token was deleted.
{{else}}
There was an error deleting the token.
{{/if}}
{{ else if (eq @type 'clone')}}
{{#if (eq @status 'success') }}
The token has been cloned as {{truncate @item.AccessorID 8 false}}
{{else}}
There was an error cloning the token.
{{/if}}
{{ else if (eq @type 'use')}}
{{#if (eq @status 'success') }}
You are now using the new ACL token
{{else}}
There was an error using that ACL token.
{{/if}}
{{/if}}
{{#let @error.errors.firstObject as |error|}}
{{#if error.detail }}
<br />{{concat '(' (if error.status (concat error.status ': ')) error.detail ')'}}
{{/if}}
{{/let}}