From 398db1339b6e29b4ba7fdbc8f8e313c7d42714b7 Mon Sep 17 00:00:00 2001 From: John Cowen Date: Wed, 14 Jul 2021 18:49:01 +0100 Subject: [PATCH] ui: [BUGFIX] Ensure in-folder KVs are created in the correct folder (#10569) When clicking to create a KV within folder name, would would be viewing a form that was a form for creating a KV in the root, which when the user clicked to save, saved the KV in the root. For the moment at least I've removed the code that strips double slashes, and whilst this isn't ideal, it looks like we've picked up one of those bugs that turns into a 'feature', and completely reworking KV to not rely on the double slashes is not really an option right now. --- .changelog/10569.txt | 3 +++ .../consul-ui/app/components/app-view/index.hbs | 2 +- .../consul-ui/app/locations/fsm-with-optional.js | 11 +++++++---- .../consul-ui/tests/acceptance/dc/kvs/create.feature | 1 + 4 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 .changelog/10569.txt diff --git a/.changelog/10569.txt b/.changelog/10569.txt new file mode 100644 index 000000000..d8aeab7ec --- /dev/null +++ b/.changelog/10569.txt @@ -0,0 +1,3 @@ +```release-note:bug +ui: Ensure in-folder KVs are created in the correct folder +``` diff --git a/ui/packages/consul-ui/app/components/app-view/index.hbs b/ui/packages/consul-ui/app/components/app-view/index.hbs index 6197f1b69..a67a5561a 100644 --- a/ui/packages/consul-ui/app/components/app-view/index.hbs +++ b/ui/packages/consul-ui/app/components/app-view/index.hbs @@ -54,7 +54,7 @@
{{#if authorized}} -