2018-10-19 15:17:02 +00:00
|
|
|
{{#if (eq type 'create')}}
|
|
|
|
{{#if (eq status 'success') }}
|
|
|
|
Your policy has been added.
|
|
|
|
{{else}}
|
|
|
|
There was an error adding your policy.
|
|
|
|
{{/if}}
|
|
|
|
{{else if (eq type 'update') }}
|
|
|
|
{{#if (eq status 'success') }}
|
|
|
|
Your policy has been saved.
|
|
|
|
{{else}}
|
|
|
|
There was an error saving your policy.
|
|
|
|
{{/if}}
|
|
|
|
{{ else if (eq type 'delete')}}
|
|
|
|
{{#if (eq status 'success') }}
|
|
|
|
Your policy was deleted.
|
|
|
|
{{else}}
|
|
|
|
There was an error deleting your policy.
|
|
|
|
{{/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
|
|
|
|