mirror of
https://github.com/zitadel/zitadel
synced 2024-11-22 00:39:36 +00:00
fix(console): message text setter (#5597)
This commit is contained in:
parent
4df15511b5
commit
4691298eb6
@ -599,7 +599,7 @@ export class MessageTextsComponent implements OnInit, OnDestroy {
|
||||
(this.service as ManagementService).setCustomPasswordlessRegistrationMessageCustomText(this.updateRequest),
|
||||
);
|
||||
case MESSAGETYPES.PASSWORDCHANGE:
|
||||
return handler((this.service as ManagementService).getCustomPasswordChangeMessageText(this.updateRequest));
|
||||
return handler((this.service as ManagementService).setCustomPasswordChangeMessageText(this.updateRequest));
|
||||
}
|
||||
} else if (this.serviceType === PolicyComponentServiceType.ADMIN) {
|
||||
switch (this.currentType) {
|
||||
|
@ -400,6 +400,8 @@ import {
|
||||
SetCustomInitMessageTextResponse,
|
||||
SetCustomLoginTextsRequest,
|
||||
SetCustomLoginTextsResponse,
|
||||
SetCustomPasswordChangeMessageTextRequest,
|
||||
SetCustomPasswordChangeMessageTextResponse,
|
||||
SetCustomPasswordlessRegistrationMessageTextRequest,
|
||||
SetCustomPasswordlessRegistrationMessageTextResponse,
|
||||
SetCustomPasswordResetMessageTextRequest,
|
||||
@ -688,6 +690,12 @@ export class ManagementService {
|
||||
return this.grpcService.mgmt.getCustomPasswordChangeMessageText(req, null).then((resp) => resp.toObject());
|
||||
}
|
||||
|
||||
public setCustomPasswordChangeMessageText(
|
||||
req: SetCustomPasswordChangeMessageTextRequest,
|
||||
): Promise<SetCustomPasswordChangeMessageTextResponse.AsObject> {
|
||||
return this.grpcService.mgmt.setCustomPasswordChangeMessageCustomText(req, null).then((resp) => resp.toObject());
|
||||
}
|
||||
|
||||
public resetCustomPasswordChangeMessageTextToDefault(
|
||||
lang: string,
|
||||
): Promise<ResetCustomPasswordChangeMessageTextToDefaultResponse.AsObject> {
|
||||
|
Loading…
Reference in New Issue
Block a user