mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 19:07:30 +00:00
feat: reset custom texts on IAM (#3160)
* fix: only show factors with state ready * fix: get iam by id and clean up code * fix: get iam by id and clean up code * fix: remove unused code * feat: add message template remove func to admin api * fix: proto texts * fix: proto texts
This commit is contained in:
@@ -79,6 +79,16 @@ func (wm *CustomMessageTextReadModel) Reduce() error {
|
||||
wm.FooterText = ""
|
||||
}
|
||||
case *policy.CustomTextTemplateRemovedEvent:
|
||||
if wm.Language != e.Language {
|
||||
continue
|
||||
}
|
||||
wm.Subject = ""
|
||||
wm.Title = ""
|
||||
wm.PreHeader = ""
|
||||
wm.Text = ""
|
||||
wm.Greeting = ""
|
||||
wm.ButtonText = ""
|
||||
wm.FooterText = ""
|
||||
wm.State = domain.PolicyStateRemoved
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user