Browse Source
Merge pull request #12029 from vvlladd28/bug/updated-oauth-client/custom-mapper-url
Fixed updated custom mapper URL when view OAuth 2.0 clients
pull/12056/head
Andrew Shvayka
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
5 additions and
1 deletions
-
ui-ngx/src/app/modules/home/pages/admin/oauth2/clients/client.component.ts
|
|
|
@ -214,7 +214,11 @@ export class ClientComponent extends EntityComponent<OAuth2Client, PageLink, OAu |
|
|
|
const mapperConfig = control.get('mapperConfig') as UntypedFormGroup; |
|
|
|
if (type === MapperType.CUSTOM) { |
|
|
|
mapperConfig.removeControl('basic'); |
|
|
|
mapperConfig.addControl('custom', this.formCustomGroup(predefinedValue?.custom)); |
|
|
|
if (!mapperConfig.get('custom')) { |
|
|
|
mapperConfig.addControl('custom', this.formCustomGroup(predefinedValue?.custom)); |
|
|
|
} else { |
|
|
|
mapperConfig.get('custom').patchValue(predefinedValue.custom, {emitEvent: false}); |
|
|
|
} |
|
|
|
} else { |
|
|
|
mapperConfig.removeControl('custom'); |
|
|
|
if (!mapperConfig.get('basic')) { |
|
|
|
|