Ensure the avatar is also based on the apiOrigin
This commit is contained in:
@@ -4,6 +4,7 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
|
||||
$scope.initialized = false;
|
||||
$scope.user = Client.getUserInfo();
|
||||
$scope.installedApps = Client.getInstalledApps();
|
||||
$scope.cloudronAvatar = Client.apiOrigin + '/api/v1/cloudron/avatar';
|
||||
$scope.config = {};
|
||||
|
||||
$scope.update = {
|
||||
@@ -82,6 +83,7 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
|
||||
window.location.reload(true);
|
||||
}
|
||||
|
||||
|
||||
Client.refreshUserInfo(function (error, result) {
|
||||
if (error) return $scope.error(error);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user