From 5007eed59cfc6fc885077cb0af21b3343d016b1d Mon Sep 17 00:00:00 2001 From: knrt10 Date: Sun, 24 Mar 2019 17:16:37 +0530 Subject: [PATCH 1/7] Fixes #12312 --- app/ui-flextab/client/tabs/userEdit.html | 80 ++++++++++++++++----- app/ui-flextab/client/tabs/userEdit.js | 90 +++++++++++++++++++++++- server/methods/resetAvatar.js | 22 ++++-- server/methods/setAvatarFromService.js | 7 +- 4 files changed, 170 insertions(+), 29 deletions(-) diff --git a/app/ui-flextab/client/tabs/userEdit.html b/app/ui-flextab/client/tabs/userEdit.html index 41285ff3a39e..daaa09bd69b9 100644 --- a/app/ui-flextab/client/tabs/userEdit.html +++ b/app/ui-flextab/client/tabs/userEdit.html @@ -3,25 +3,67 @@

{{_ "You_are_not_authorized_to_view_this_page"}}

{{else}}
-
- -
-
- -
+
+ +
+
+ {{# unless avatarPreview}} + {{> avatar username=user.username}} + {{else}} + {{> avatar url=avatarPreview.blob}} + {{/unless}} +
+ +
+
+ {{> avatar username=initialsUsername }} +
+
+ + +
+
+ +
+ +
+ + +
+
+
+ +
+ +
+
+ +
+