frontend: Show info on /emails only in dev env.

This commit is contained in:
Vishnu Ks 2017-10-04 18:44:10 +00:00 committed by Tim Abbott
parent 119157b205
commit 94cb5b854f
1 changed files with 4 additions and 2 deletions

View File

@ -159,9 +159,11 @@ exports.set_up = function () {
data: data, data: data,
success: function (data) { success: function (data) {
if ('account_email' in data) { if ('account_email' in data) {
var email_msg = templates.render('dev_env_email_access');
settings_change_success(data.account_email); 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); $("#account-settings-status").append(email_msg);
}
} else { } else {
settings_change_success(i18n.t("No changes made.")); settings_change_success(i18n.t("No changes made."));
} }