From 2389bee24c8f787a9c305d5fbbf9c6fd100dbb2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Mon, 6 Apr 2015 18:14:13 +0200 Subject: [PATCH] FEATURE: add notice when successfully changing avatar --- app/assets/javascripts/discourse/routes/preferences.js.es6 | 1 + config/locales/client.en.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/app/assets/javascripts/discourse/routes/preferences.js.es6 b/app/assets/javascripts/discourse/routes/preferences.js.es6 index 7fb2ba4a4..4fde634e0 100644 --- a/app/assets/javascripts/discourse/routes/preferences.js.es6 +++ b/app/assets/javascripts/discourse/routes/preferences.js.es6 @@ -56,6 +56,7 @@ export default RestrictedUserRoute.extend(ShowFooter, { 'gravatar_avatar_upload_id', 'custom_avatar_upload_id' )); + bootbox.alert(I18n.t("user.change_avatar.cache_notice")); }); } diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index 76a0c9f41..5bdc67017 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -418,6 +418,7 @@ en: upload_title: "Upload your picture" upload_picture: "Upload Picture" image_is_not_a_square: "Warning: we've cropped your image; width and height were not equal." + cache_notice: "You've successfully changed your avatar but it might take some time to appear due to browser caching." change_profile_background: title: "Profile Background"