mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-07 23:27:41 +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),
|
(this.service as ManagementService).setCustomPasswordlessRegistrationMessageCustomText(this.updateRequest),
|
||||||
);
|
);
|
||||||
case MESSAGETYPES.PASSWORDCHANGE:
|
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) {
|
} else if (this.serviceType === PolicyComponentServiceType.ADMIN) {
|
||||||
switch (this.currentType) {
|
switch (this.currentType) {
|
||||||
|
@ -400,6 +400,8 @@ import {
|
|||||||
SetCustomInitMessageTextResponse,
|
SetCustomInitMessageTextResponse,
|
||||||
SetCustomLoginTextsRequest,
|
SetCustomLoginTextsRequest,
|
||||||
SetCustomLoginTextsResponse,
|
SetCustomLoginTextsResponse,
|
||||||
|
SetCustomPasswordChangeMessageTextRequest,
|
||||||
|
SetCustomPasswordChangeMessageTextResponse,
|
||||||
SetCustomPasswordlessRegistrationMessageTextRequest,
|
SetCustomPasswordlessRegistrationMessageTextRequest,
|
||||||
SetCustomPasswordlessRegistrationMessageTextResponse,
|
SetCustomPasswordlessRegistrationMessageTextResponse,
|
||||||
SetCustomPasswordResetMessageTextRequest,
|
SetCustomPasswordResetMessageTextRequest,
|
||||||
@ -688,6 +690,12 @@ export class ManagementService {
|
|||||||
return this.grpcService.mgmt.getCustomPasswordChangeMessageText(req, null).then((resp) => resp.toObject());
|
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(
|
public resetCustomPasswordChangeMessageTextToDefault(
|
||||||
lang: string,
|
lang: string,
|
||||||
): Promise<ResetCustomPasswordChangeMessageTextToDefaultResponse.AsObject> {
|
): Promise<ResetCustomPasswordChangeMessageTextToDefaultResponse.AsObject> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user