File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
services/static-webserver/client/source/class/osparc/info Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments