summaryrefslogtreecommitdiffstats
path: root/routers/user
diff options
context:
space:
mode:
author赵智超 <1012112796@qq.com>2020-04-10 01:22:17 +0800
committerGitHub <noreply@github.com>2020-04-09 13:22:17 -0400
commitca714db4fd8ed8aad88b5e2205e99a72ec2bdfc8 (patch)
treeba857ecec79dea272c92c67703d8bdf3d3439a51 /routers/user
parent0be25e21501ccf8c0f27e2fa87aba00ad304c951 (diff)
downloadgitea-ca714db4fd8ed8aad88b5e2205e99a72ec2bdfc8.tar.gz
gitea-ca714db4fd8ed8aad88b5e2205e99a72ec2bdfc8.zip
ui:Add flash notify for email preference seting success (#11027)
* Add flash notify for email preference seting success Signed-off-by: a1012112796 <1012112796@qq.com> * add review suggest changes Co-authored-by: Lauris BH <lauris@nix.lv> Co-Authored-By: Lauris BH <lauris@nix.lv> Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'routers/user')
-rw-r--r--routers/user/setting/account.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/user/setting/account.go b/routers/user/setting/account.go
index 3c0c64ca27..27f0bf1c86 100644
--- a/routers/user/setting/account.go
+++ b/routers/user/setting/account.go
@@ -149,6 +149,7 @@ func EmailPost(ctx *context.Context, form auth.AddEmailForm) {
return
}
log.Trace("Email notifications preference made %s: %s", preference, ctx.User.Name)
+ ctx.Flash.Success(ctx.Tr("settings.email_preference_set_success"))
ctx.Redirect(setting.AppSubURL + "/user/settings/account")
return
}