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

Make sure we store the default Partition for a users token.
This commit is contained in:
John Cowen 2021-11-17 17:52:31 +00:00 committed by GitHub
parent a31cc5f7c3
commit da8a8924dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

3
.changelog/11591.txt Normal file
View File

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

View File

@ -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