File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
services/static-webserver/client/source/class/osparc/share Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -412,14 +412,18 @@ qx.Class.define("osparc.share.Collaborators", {
412412 if ( Object . prototype . hasOwnProperty . call ( this . __collaborators , gid ) ) {
413413 const collab = this . __collaborators [ gid ] ;
414414 // Do not override collaborator object
415- const collaborator = osparc . utils . Utils . deepCloneObject ( collab ) ;
416- if ( "first_name" in collaborator ) {
415+ const collaborator = {
416+ "gid" : collab . getGroupId ( ) ,
417+ "thumbnail" : collab . getThumbnail ( ) ,
418+ } ;
419+ if ( "getUserId" in collab ) {
417420 // user
418- collaborator [ "thumbnail" ] = collaborator . getThumbnail ( ) ;
419- collaborator [ "name" ] = collaborator . getLabel ( ) ;
420- } else if ( everyoneGIds . includes ( parseInt ( gid ) ) ) {
421- // everyone product or everyone
422- if ( collaborator [ "thumbnail" ] === null ) {
421+ collaborator [ "name" ] = collab . getLabel ( ) ;
422+ collaborator [ "login" ] = collab . getLogin ( ) ;
423+ } else {
424+ collaborator [ "label" ] = collab . getLabel ( ) ;
425+ collaborator [ "description" ] = collab . getDescription ( ) ;
426+ if ( everyoneGIds . includes ( parseInt ( gid ) ) ) {
423427 collaborator [ "thumbnail" ] = "@FontAwesome5Solid/globe/32" ;
424428 }
425429 }
You can’t perform that action at this time.
0 commit comments