From b7bd938411fb85a710590c2c9fd895b91afb8775 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 0000000000..5efad80242 --- /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 018f679b63..c0ad688c58 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