Files
threshold-ui/ui/desktop/app/templates/scopes/scope/projects/error.hbs
T
Lauren 36db2d3f1d Replace Rose::Button with Hds::Button (#2771)
* refactor btn

* refactor scope/workers/index.hbs

* refactor add-members, add-principals

* refactor btns, fix tests

* update json-secret-skeleton btn

* remove class from app.scss
2025-04-22 16:25:12 -04:00

33 lines
810 B
Handlebars

{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: BUSL-1.1
}}
{{page-title (t 'errors.generic.title')}}
{{! Most error types will land here }}
{{#if @model.errors}}
<Rose::Layout::Centered>
{{#each @model.errors as |error|}}
<Error::Message
@status={{error.status}}
@docLink={{doc-url 'support-page'}}
/>
{{/each}}
</Rose::Layout::Centered>
{{/if}}
{{! But a disconnected state doesn't get normalized errors }}
{{#unless @model.errors}}
<Rose::Layout::Centered>
<Error::Message @docLink={{doc-url 'support-page'}} />
</Rose::Layout::Centered>
<Rose::Layout::Centered>
<Hds::Button
@color='primary'
@text={{t 'actions.disconnect'}}
{{on 'click' this.appUtilities.disconnect}}
/>
</Rose::Layout::Centered>
{{/unless}}