From f83a687551f93aef0efaf7b967c7b352fc663feb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Fri, 20 Jul 2018 00:37:57 +0200 Subject: [PATCH] UX: skip the modal and refresh the app when selecting an avatar --- .../javascripts/discourse/routes/preferences.js.es6 | 12 ++---------- config/locales/client.en.yml | 1 - 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/app/assets/javascripts/discourse/routes/preferences.js.es6 b/app/assets/javascripts/discourse/routes/preferences.js.es6 index 7c5d2536cf0..6017a0f92cd 100644 --- a/app/assets/javascripts/discourse/routes/preferences.js.es6 +++ b/app/assets/javascripts/discourse/routes/preferences.js.es6 @@ -51,11 +51,7 @@ export default RestrictedUserRoute.extend({ user .selectAvatar(url) - .then(() => { - bootbox.alert(I18n.t("user.change_avatar.cache_notice"), () => - window.location.reload() - ); - }) + .then(() => window.location.reload()) .catch(popupAjaxError); }, @@ -70,11 +66,7 @@ export default RestrictedUserRoute.extend({ user .pickAvatar(selectedUploadId, type, selectedAvatarTemplate) - .then(() => { - bootbox.alert(I18n.t("user.change_avatar.cache_notice"), () => - window.location.reload() - ); - }) + .then(() => window.location.reload()) .catch(popupAjaxError); } } diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index cb8c382cf7b..36b9ae722fe 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -797,7 +797,6 @@ 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 profile picture but it might take some time to appear due to browser caching." change_profile_background: title: "Profile Background"