Merge pull request #2157 from aignatov-bio/ai-sci-3927-predefined-avatars

Fix avatar localization [SCI-3927]
This commit is contained in:
aignatov-bio 2019-10-15 08:57:21 +02:00 committed by GitHub
commit ba9edcdbe1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -84,7 +84,7 @@ var avatarsModal = (function() {
return {
init: () => {
if ($('.modal-user-avatar').length > 0) {
if ($(modal).length > 0) {
initUploadPhotoButton();
initCropTool();
initPredefinedAvatars();

View file

@ -1410,8 +1410,8 @@ en:
edit:
head_title: "My profile"
title: "My profile"
avatar_label: "Avatar"
avatar_btn: "Edit Avatar"
avatar_label: "Profile photo"
avatar_btn: "Edit photo"
avatar_modal:
title: 'Change your profile photo'
upload_button: 'Upload a photo'