Bug Fix: OIDC with hcp flag (#11283)

* add conditional

* add changelog
This commit is contained in:
Angel Garbarino 2021-04-07 10:46:06 -06:00 committed by GitHub
parent 2e0c1fb9dc
commit ea7e77cb4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

3
changelog/11283.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:bug
ui: Fix footer URL linking to the correct version changelog.
```

View File

@ -16,6 +16,7 @@ export { ERROR_WINDOW_CLOSED, ERROR_MISSING_PARAMS, ERROR_JWT_LOGIN };
export default Component.extend({ export default Component.extend({
store: service(), store: service(),
featureFlagService: service('featureFlag'),
selectedAuthPath: null, selectedAuthPath: null,
selectedAuthType: null, selectedAuthType: null,
roleName: null, roleName: null,
@ -131,7 +132,7 @@ export default Component.extend({
// The namespace can be either be passed as a query paramter, or be embedded // The namespace can be either be passed as a query paramter, or be embedded
// in the state param in the format `<state_id>,ns=<namespace>`. So if // in the state param in the format `<state_id>,ns=<namespace>`. So if
// `namespace` is empty, check for namespace in state as well. // `namespace` is empty, check for namespace in state as well.
if (namespace === '') { if (namespace === '' || this.featureFlagService.managedNamespaceRoot) {
let i = state.indexOf(',ns='); let i = state.indexOf(',ns=');
if (i >= 0) { if (i >= 0) {
// ",ns=" is 4 characters // ",ns=" is 4 characters