mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-13 21:24:32 +00:00
fix: missing patchvalue (#1758)
This commit is contained in:
@@ -266,6 +266,9 @@ export class AppDetailComponent implements OnInit, OnDestroy {
|
|||||||
if (this.app.oidcConfig) {
|
if (this.app.oidcConfig) {
|
||||||
this.oidcForm.patchValue(this.app.oidcConfig);
|
this.oidcForm.patchValue(this.app.oidcConfig);
|
||||||
}
|
}
|
||||||
|
if (this.app.apiConfig) {
|
||||||
|
this.apiForm.patchValue(this.app.apiConfig);
|
||||||
|
}
|
||||||
|
|
||||||
this.oidcForm.valueChanges.subscribe((oidcConfig) => {
|
this.oidcForm.valueChanges.subscribe((oidcConfig) => {
|
||||||
this.initialAuthMethod = this.authMethodFromPartialConfig({ oidc: oidcConfig });
|
this.initialAuthMethod = this.authMethodFromPartialConfig({ oidc: oidcConfig });
|
||||||
@@ -375,7 +378,7 @@ export class AppDetailComponent implements OnInit, OnDestroy {
|
|||||||
(partialConfig.api as Partial<APIConfig.AsObject>).authMethodType
|
(partialConfig.api as Partial<APIConfig.AsObject>).authMethodType
|
||||||
?? APIAuthMethodType.API_AUTH_METHOD_TYPE_BASIC;
|
?? APIAuthMethodType.API_AUTH_METHOD_TYPE_BASIC;
|
||||||
|
|
||||||
this.apiAuthMethodType?.setValue(this.app.apiConfig.authMethodType);
|
this.apiForm.patchValue(this.app.apiConfig);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user