2018-10-19 15:17:02 +00:00
|
|
|
{{#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 subject.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}}
|
2020-05-19 16:18:04 +00:00
|
|
|
{{#let error.errors.firstObject as |error|}}
|
|
|
|
{{#if error.detail }}
|
|
|
|
<br />{{concat '(' (if error.status (concat error.status ': ')) error.detail ')'}}
|
|
|
|
{{/if}}
|
|
|
|
{{/let}}
|
2018-10-19 15:17:02 +00:00
|
|
|
|