From da8a8924dd86db37ad12d0d05eb64a0625967a8e Mon Sep 17 00:00:00 2001 From: John Cowen Date: Wed, 17 Nov 2021 17:52:31 +0000 Subject: [PATCH] ui: Store the default partition when logging in (#11591) Make sure we store the default Partition for a users token. --- .changelog/11591.txt | 3 +++ ui/packages/consul-ui/app/components/token-source/index.js | 1 + 2 files changed, 4 insertions(+) create mode 100644 .changelog/11591.txt diff --git a/.changelog/11591.txt b/.changelog/11591.txt new file mode 100644 index 000000000..5efad8024 --- /dev/null +++ b/.changelog/11591.txt @@ -0,0 +1,3 @@ +```release-note:bug +ui: Ensure the UI stores the default partition for the users token +``` diff --git a/ui/packages/consul-ui/app/components/token-source/index.js b/ui/packages/consul-ui/app/components/token-source/index.js index 018f679b6..c0ad688c5 100644 --- a/ui/packages/consul-ui/app/components/token-source/index.js +++ b/ui/packages/consul-ui/app/components/token-source/index.js @@ -21,6 +21,7 @@ export default Component.extend({ // in the response SecretID: this.SecretID, Namespace: this.Namespace, + Partition: this.Partition, ...{ AuthMethod: typeof this.AuthMethod !== 'undefined' ? this.AuthMethod : undefined, // TODO: We should be able to only set namespaces if they are enabled