mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: skip the modal and refresh the app when selecting an avatar
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user