mirror of https://github.com/status-im/consul.git
32 lines
816 B
Handlebars
32 lines
816 B
Handlebars
{{#if (eq type 'create')}}
|
|
{{#if (eq status 'success') }}
|
|
Your key has been added.
|
|
{{else}}
|
|
There was an error adding your key.
|
|
{{/if}}
|
|
{{else if (eq type 'update') }}
|
|
{{#if (eq status 'success') }}
|
|
Your key has been saved.
|
|
{{else}}
|
|
There was an error saving your key.
|
|
{{/if}}
|
|
{{ else if (eq type 'delete')}}
|
|
{{#if (eq status 'success') }}
|
|
Your key was deleted.
|
|
{{else}}
|
|
There was an error deleting your key.
|
|
{{/if}}
|
|
{{ else if (eq type 'deletesession')}}
|
|
{{#if (eq status 'success') }}
|
|
Your session was invalidated.
|
|
{{else}}
|
|
There was an error invalidating your session.
|
|
{{/if}}
|
|
{{/if}}
|
|
{{#let error.errors.firstObject as |error|}}
|
|
{{#if error.detail }}
|
|
<br />{{concat '(' (if error.status (concat error.status ': ')) error.detail ')'}}
|
|
{{/if}}
|
|
{{/let}}
|
|
|