Skip to content

Commit dfc4343

Browse files
committed
thumbnail -> avatar
1 parent e838279 commit dfc4343

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

services/static-webserver/client/source/class/osparc/conversation/AddMessage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ qx.Class.define("osparc.conversation.AddMessage", {
6969
});
7070
break;
7171
}
72-
case "thumbnail": {
72+
case "avatar": {
7373
control = osparc.utils.Utils.createThumbnail(32);
7474
const authStore = osparc.auth.Data.getInstance();
7575
control.set({
@@ -135,7 +135,7 @@ qx.Class.define("osparc.conversation.AddMessage", {
135135
},
136136

137137
__buildLayout: function() {
138-
this.getChildControl("thumbnail");
138+
this.getChildControl("avatar");
139139
this.getChildControl("comment-field");
140140
this.getChildControl("add-comment-button");
141141
},

services/static-webserver/client/source/class/osparc/conversation/MessageUI.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ qx.Class.define("osparc.conversation.MessageUI", {
6464
const isMyMessage = this.self().isMyMessage(this.getMessage());
6565
let control;
6666
switch (id) {
67-
case "thumbnail":
67+
case "avatar":
6868
control = new osparc.ui.basic.UserThumbnail(32).set({
6969
marginTop: 4,
7070
alignY: "top",
@@ -149,18 +149,18 @@ qx.Class.define("osparc.conversation.MessageUI", {
149149
const messageContent = this.getChildControl("message-content");
150150
messageContent.setValue(message["content"]);
151151

152-
const thumbnail = this.getChildControl("thumbnail");
152+
const avatar = this.getChildControl("avatar");
153153
const userName = this.getChildControl("user-name");
154154
if (message["userGroupId"] === "system") {
155155
userName.setValue("Support");
156156
} else {
157157
osparc.store.Users.getInstance().getUser(message["userGroupId"])
158158
.then(user => {
159-
thumbnail.setUser(user);
159+
avatar.setUser(user);
160160
userName.setValue(user ? user.getLabel() : "Unknown user");
161161
})
162162
.catch(() => {
163-
thumbnail.setSource(osparc.utils.Avatar.emailToThumbnail());
163+
avatar.setSource(osparc.utils.Avatar.emailToThumbnail());
164164
userName.setValue("Unknown user");
165165
});
166166
}

services/static-webserver/client/source/class/osparc/user/UserProfile.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,6 @@ qx.Class.define("osparc.user.UserProfile", {
237237
this.getChildControl("user-id").setValue(String(user.getUserId()));
238238
this.getChildControl("group-id").setValue(String(user.getGroupId()));
239239

240-
// this.getChildControl("thumbnail").setSource(user.createThumbnail(this.self().THUMBNAIL_SIZE));
241-
242240
// middle grid
243241
this.getChildControl("institution").setValue(user.getInstitution() || "-");
244242
this.getChildControl("address").setValue(user.getAddress() || "-");

0 commit comments

Comments
 (0)