Skip to content

Commit 42de8d1

Browse files
committed
bell
1 parent 321a9fb commit 42de8d1

File tree

1 file changed

+12
-1
lines changed
  • services/static-webserver/client/source/class/osparc/info

1 file changed

+12
-1
lines changed

services/static-webserver/client/source/class/osparc/info/CommentUI.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,18 @@ qx.Class.define("osparc.info.CommentUI", {
123123

124124
const commentContent = this.getChildControl("comment-content");
125125
if (this.__comment["type"] === "NOTIFICATION") {
126-
commentContent.setValue(this.__comment["content"] + " was notified");
126+
commentContent.setValue("🔔 " + this.tr("Notified") + ": ");
127+
osparc.store.Users.getInstance().getUser(parseInt(this.__comment["content"]))
128+
.then(user => {
129+
if (user) {
130+
commentContent.setValue(commentContent.getValue() + user.getLabel());
131+
} else {
132+
commentContent.setValue(commentContent.getValue() + parseInt(this.__comment["content"]));
133+
}
134+
})
135+
.catch(() => {
136+
commentContent.setValue(commentContent.getValue() + parseInt(this.__comment["content"]));
137+
});
127138
} else if (this.__comment["type"] === "MESSAGE") {
128139
commentContent.setValue(this.__comment["content"]);
129140
}

0 commit comments

Comments
 (0)