From 94cb5b854f6b5dc1cdd8f90d0a19594f2f265f3a Mon Sep 17 00:00:00 2001 From: Vishnu Ks Date: Wed, 4 Oct 2017 18:44:10 +0000 Subject: [PATCH] frontend: Show info on /emails only in dev env. --- static/js/settings_account.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/static/js/settings_account.js b/static/js/settings_account.js index 557ddcf735..fef5e6e816 100644 --- a/static/js/settings_account.js +++ b/static/js/settings_account.js @@ -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); - $("#account-settings-status").append(email_msg); + 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.")); }