mirror of https://github.com/hashicorp/consul
John Cowen
3 years ago
committed by
GitHub
4 changed files with 41 additions and 10 deletions
@ -0,0 +1,24 @@
|
||||
{{#if (eq @type 'create')}} |
||||
{{#if (eq @status 'success') }} |
||||
Your intention has been added. |
||||
{{else}} |
||||
There was an error adding your intention. |
||||
{{/if}} |
||||
{{else if (eq @type 'update') }} |
||||
{{#if (eq @status 'success') }} |
||||
Your intention has been saved. |
||||
{{else}} |
||||
There was an error saving your intention. |
||||
{{/if}} |
||||
{{ else if (eq @type 'delete')}} |
||||
{{#if (eq @status 'success') }} |
||||
Your intention was deleted. |
||||
{{else}} |
||||
There was an error deleting your intention. |
||||
{{/if}} |
||||
{{/if}} |
||||
{{#let @error.errors.firstObject as |error|}} |
||||
{{#if error.detail }} |
||||
<br />{{concat '(' (if error.status (concat error.status ': ')) error.detail ')'}} |
||||
{{/if}} |
||||
{{/let}} |
Loading…
Reference in new issue