2020-10-19 16:31:01 +00:00
|
|
|
{{#if (eq @type 'create')}}
|
|
|
|
{{#if (eq @status 'success') }}
|
2018-10-19 15:17:02 +00:00
|
|
|
The token has been added.
|
|
|
|
{{else}}
|
|
|
|
There was an error adding the token.
|
|
|
|
{{/if}}
|
2020-10-19 16:31:01 +00:00
|
|
|
{{else if (eq @type 'update') }}
|
|
|
|
{{#if (eq @status 'success') }}
|
2018-10-19 15:17:02 +00:00
|
|
|
The token has been saved.
|
|
|
|
{{else}}
|
|
|
|
There was an error saving the token.
|
|
|
|
{{/if}}
|
2020-10-19 16:31:01 +00:00
|
|
|
{{ else if (eq @type 'delete')}}
|
|
|
|
{{#if (eq @status 'success') }}
|
2018-10-19 15:17:02 +00:00
|
|
|
The token was deleted.
|
|
|
|
{{else}}
|
|
|
|
There was an error deleting the token.
|
|
|
|
{{/if}}
|
2020-10-19 16:31:01 +00:00
|
|
|
{{ else if (eq @type 'clone')}}
|
|
|
|
{{#if (eq @status 'success') }}
|
|
|
|
The token has been cloned as {{truncate @item.AccessorID 8 false}}
|
2018-10-19 15:17:02 +00:00
|
|
|
{{else}}
|
|
|
|
There was an error cloning the token.
|
|
|
|
{{/if}}
|
2020-10-19 16:31:01 +00:00
|
|
|
{{ else if (eq @type 'use')}}
|
|
|
|
{{#if (eq @status 'success') }}
|
2018-10-19 15:17:02 +00:00
|
|
|
You are now using the new ACL token
|
|
|
|
{{else}}
|
|
|
|
There was an error using that ACL token.
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
2020-10-19 16:31:01 +00:00
|
|
|
{{#let @error.errors.firstObject as |error|}}
|
2020-05-19 16:18:04 +00:00
|
|
|
{{#if error.detail }}
|
|
|
|
<br />{{concat '(' (if error.status (concat error.status ': ')) error.detail ')'}}
|
|
|
|
{{/if}}
|
|
|
|
{{/let}}
|