2023-03-01 09:39:41 -06:00
|
|
|
{{!
|
|
|
|
|
Copyright (c) HashiCorp, Inc.
|
|
|
|
|
SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
}}
|
|
|
|
|
|
2021-05-11 15:39:59 -04:00
|
|
|
{{page-title (t 'errors.generic.title')}}
|
2021-02-11 21:42:05 -05:00
|
|
|
|
2021-02-12 09:57:43 -05:00
|
|
|
{{! Most error types will land here }}
|
|
|
|
|
{{#if @model.errors}}
|
|
|
|
|
<Rose::Layout::Centered>
|
|
|
|
|
{{#each @model.errors as |error|}}
|
2021-05-11 15:39:59 -04:00
|
|
|
<Error::Message @status={{error.status}} />
|
2021-02-12 09:57:43 -05:00
|
|
|
{{/each}}
|
|
|
|
|
</Rose::Layout::Centered>
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
|
|
{{! But a disconnected state doesn't get normalized errors }}
|
|
|
|
|
{{#unless @model.errors}}
|
|
|
|
|
<Rose::Layout::Centered>
|
|
|
|
|
<Error::Message />
|
|
|
|
|
</Rose::Layout::Centered>
|
|
|
|
|
|
|
|
|
|
<Rose::Layout::Centered>
|
2021-05-11 15:39:59 -04:00
|
|
|
<Rose::Button @style='primary' {{on 'click' (route-action 'disconnect')}}>
|
|
|
|
|
{{t 'actions.disconnect'}}
|
2021-02-12 09:57:43 -05:00
|
|
|
</Rose::Button>
|
|
|
|
|
</Rose::Layout::Centered>
|
2022-10-06 11:41:12 -04:00
|
|
|
{{/unless}}
|