From 90f9d3cb4eec0cc3fe369f27de9263554b3a7257 Mon Sep 17 00:00:00 2001 From: Jordan Reimer Date: Wed, 4 Oct 2023 14:21:29 -0600 Subject: [PATCH 1/2] adds error route for policies --- .../vault/cluster/policies/error.hbs | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 ui/app/templates/vault/cluster/policies/error.hbs diff --git a/ui/app/templates/vault/cluster/policies/error.hbs b/ui/app/templates/vault/cluster/policies/error.hbs new file mode 100644 index 000000000000..d1105447ca1d --- /dev/null +++ b/ui/app/templates/vault/cluster/policies/error.hbs @@ -0,0 +1,28 @@ +{{! + Copyright (c) HashiCorp, Inc. + SPDX-License-Identifier: BUSL-1.1 +~}} + +{{#if (eq this.model.httpStatus 404)}} + +{{else}} + + +

+ {{#if (eq this.model.httpStatus 403)}} + Not authorized + {{else}} + Error + {{/if}} +

+
+
+
+ {{#if this.model.message}} +

{{this.model.message}}

+ {{/if}} + {{#each this.model.errors as |error|}} +

{{error}}

+ {{/each}} +
+{{/if}} \ No newline at end of file From e8b5e93e0b9ca2e46232a2adbb371d87214e54c8 Mon Sep 17 00:00:00 2001 From: Jordan Reimer Date: Wed, 4 Oct 2023 14:29:20 -0600 Subject: [PATCH 2/2] adds changelog entry --- changelog/23516.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 changelog/23516.txt diff --git a/changelog/23516.txt b/changelog/23516.txt new file mode 100644 index 000000000000..f87ab2092710 --- /dev/null +++ b/changelog/23516.txt @@ -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 +``` \ No newline at end of file