From 375433923ea2c23de12d177ca254b9e819ee6cad Mon Sep 17 00:00:00 2001 From: Kianna <30884335+kiannaquach@users.noreply.github.com> Date: Tue, 24 Jan 2023 11:33:57 -0800 Subject: [PATCH] UI: Bugfix: VAULT-9343 fix key management key view bug (#18808) * VAULT-9343 fix key management key view bug * Add changelog * Update changelog name * Address feedback! * Check if provider or key --- changelog/18808.txt | 3 +++ ui/app/helpers/secret-query-params.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelog/18808.txt diff --git a/changelog/18808.txt b/changelog/18808.txt new file mode 100644 index 000000000..12c80e62d --- /dev/null +++ b/changelog/18808.txt @@ -0,0 +1,3 @@ +```release-note:bug +ui: fixes keymgmt key details page +`` \ No newline at end of file diff --git a/ui/app/helpers/secret-query-params.js b/ui/app/helpers/secret-query-params.js index f0a5b63d0..04cb90c75 100644 --- a/ui/app/helpers/secret-query-params.js +++ b/ui/app/helpers/secret-query-params.js @@ -4,7 +4,7 @@ export function secretQueryParams([backendType, type = ''], { asQueryParams }) { const values = { transit: { tab: 'actions' }, database: { type }, - keymgmt: { itemType: type || 'key' }, + keymgmt: { itemType: type === 'provider' ? 'provider' : 'key' }, }[backendType]; // format required when using LinkTo with positional params if (values && asQueryParams) {