Files
threshold-ui/ui/desktop/app/templates/scopes/scope/projects/error.hbs
T

28 lines
711 B
Handlebars
Raw Normal View History

{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
}}
{{page-title (t 'errors.generic.title')}}
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|}}
<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>
<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}}