mirror of https://github.com/zulip/zulip.git
frontend: Show info on /emails only in dev env.
This commit is contained in:
parent
119157b205
commit
94cb5b854f
|
@ -159,9 +159,11 @@ exports.set_up = function () {
|
|||
data: data,
|
||||
success: function (data) {
|
||||
if ('account_email' in data) {
|
||||
var email_msg = templates.render('dev_env_email_access');
|
||||
settings_change_success(data.account_email);
|
||||
if (page_params.development_environment) {
|
||||
var email_msg = templates.render('dev_env_email_access');
|
||||
$("#account-settings-status").append(email_msg);
|
||||
}
|
||||
} else {
|
||||
settings_change_success(i18n.t("No changes made."));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue