Reload webadmin in case the avatar changes

Fixes #452
This commit is contained in:
Johannes Zellner
2015-07-28 10:50:31 +02:00
parent 8aaccbba55
commit 3513f321fb

View File

@@ -192,9 +192,8 @@ angular.module('Application').controller('SettingsController', ['$scope', '$loca
if (error) {
console.error('Unable to change developer mode.', error);
} else {
$scope.avatar = $scope.avatarChange.avatar;
avatarChangeReset();
$('#avatarChangeModal').modal('hide');
// Do soft reload, since the browser will not update the avatar URLs in the UI
window.location.reload();
}
$scope.avatarChange.busy = false;