backport of commit cbb96b230c296402341aba11fc1cf41d4f9c2e25 (#23524)

Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
This commit is contained in:
hc-github-team-secure-vault-core 2023-10-05 11:54:03 -04:00 committed by GitHub
parent 8e27406717
commit cf7c5ee6d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 0 deletions

3
changelog/23516.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:bug
ui: Fixes issue with sidebar navigation links disappearing when navigating to policies when a user is not authorized
```

View File

@ -0,0 +1,28 @@
{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: BUSL-1.1
~}}
{{#if (eq this.model.httpStatus 404)}}
<NotFound @model={{this.model}} />
{{else}}
<PageHeader as |p|>
<p.levelLeft>
<h1 class="title is-3 has-text-grey">
{{#if (eq this.model.httpStatus 403)}}
Not authorized
{{else}}
Error
{{/if}}
</h1>
</p.levelLeft>
</PageHeader>
<div class="box is-sideless has-background-white-bis has-text-grey has-text-centered">
{{#if this.model.message}}
<p>{{this.model.message}}</p>
{{/if}}
{{#each this.model.errors as |error|}}
<p>{{error}}</p>
{{/each}}
</div>
{{/if}}