2023-03-14 13:18:55 +00:00
|
|
|
{{!
|
|
|
|
Copyright (c) HashiCorp, Inc.
|
|
|
|
SPDX-License-Identifier: MPL-2.0
|
|
|
|
}}
|
|
|
|
|
2021-01-19 15:40:39 +00:00
|
|
|
{{#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}}
|
|
|
|
{{/if}}
|
|
|
|
{{#let @error.errors.firstObject as |error|}}
|
|
|
|
{{#if error.detail }}
|
|
|
|
<br />{{concat '(' (if error.status (concat error.status ': ')) error.detail ')'}}
|
|
|
|
{{/if}}
|
|
|
|
{{/let}}
|
|
|
|
|