Browse Source

ui: Store the default partition when logging in (#11591)

Make sure we store the default Partition for a users token.
pull/11600/head
John Cowen 3 years ago committed by GitHub
parent
commit
b7bd938411
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      .changelog/11591.txt
  2. 1
      ui/packages/consul-ui/app/components/token-source/index.js

3
.changelog/11591.txt

@ -0,0 +1,3 @@
```release-note:bug
ui: Ensure the UI stores the default partition for the users token
```

1
ui/packages/consul-ui/app/components/token-source/index.js

@ -21,6 +21,7 @@ export default Component.extend({
// in the response // in the response
SecretID: this.SecretID, SecretID: this.SecretID,
Namespace: this.Namespace, Namespace: this.Namespace,
Partition: this.Partition,
...{ ...{
AuthMethod: typeof this.AuthMethod !== 'undefined' ? this.AuthMethod : undefined, AuthMethod: typeof this.AuthMethod !== 'undefined' ? this.AuthMethod : undefined,
// TODO: We should be able to only set namespaces if they are enabled // TODO: We should be able to only set namespaces if they are enabled

Loading…
Cancel
Save