Skip to content

Commit

Permalink
Merge pull request #232 from asmaNode/#231
Browse files Browse the repository at this point in the history
resolve avatar palceholder path
  • Loading branch information
alagane authored Jul 23, 2021
2 parents 5c1c043 + 396efb8 commit d78067d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/frontend/js/modules/avatar.js
Original file line number Diff line number Diff line change
Expand Up @@ -426,13 +426,12 @@
}
};
})
.directive('avatarPicker', function(selectionService, $alert, avatarDefaultUrl) {
.directive('avatarPicker', function(selectionService, $alert, avatarDefaultUrl, httpConfigurer) {
function link($scope, element, attrs) {
$scope.image = {
selected: false
};
$scope.avatarPlaceholder = attrs.avatarPlaceholder ? attrs.avatarPlaceholder : avatarDefaultUrl.get();

$scope.avatarPlaceholder = attrs.avatarPlaceholder ? httpConfigurer.getUrl(attrs.avatarPlaceholder) : avatarDefaultUrl.get();
var alertInstance = null;

function destroyAlertInstance() {
Expand Down

0 comments on commit d78067d

Please sign in to comment.