File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
services/static-webserver/client/source/class/osparc Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,6 @@ qx.Class.define("osparc.editor.AnnotationNoteCreator", {
9696 recipientsManager . addListener ( "addCollaborators" , e => {
9797 const data = e . getData ( ) ;
9898 const recipientGids = data [ "selectedGids" ] ;
99-
10099 if ( recipientGids && recipientGids . length ) {
101100 const recipientGid = parseInt ( recipientGids [ 0 ] ) ;
102101 this . __setRecipientGid ( recipientGid ) ;
Original file line number Diff line number Diff line change @@ -134,12 +134,13 @@ qx.Class.define("osparc.info.CommentAdd", {
134134 __notifyUserTapped : function ( ) {
135135 const showOrganizations = false ;
136136 const showAccessRights = false ;
137- const recipientsManager = new osparc . share . NewCollaboratorsManager ( this . __studyData , showOrganizations , showAccessRights ) . set ( {
137+ const userManager = new osparc . share . NewCollaboratorsManager ( this . __studyData , showOrganizations , showAccessRights ) . set ( {
138138 acceptOnlyOne : true ,
139139 } ) ;
140- recipientsManager . setCaption ( this . tr ( "Notify user" ) ) ;
141- recipientsManager . getActionButton ( ) . setLabel ( this . tr ( "Notify" ) ) ;
142- recipientsManager . addListener ( "addCollaborators" , e => {
140+ userManager . setCaption ( this . tr ( "Notify user" ) ) ;
141+ userManager . getActionButton ( ) . setLabel ( this . tr ( "Notify" ) ) ;
142+ userManager . addListener ( "addCollaborators" , e => {
143+ userManager . close ( ) ;
143144 const data = e . getData ( ) ;
144145 const userGids = data [ "selectedGids" ] ;
145146 if ( userGids && userGids . length ) {
@@ -187,7 +188,7 @@ qx.Class.define("osparc.info.CommentAdd", {
187188 if ( userGroupId ) {
188189 osparc . study . Conversations . notifyUser ( this . __studyData [ "uuid" ] , this . __conversationId , userGroupId )
189190 . then ( data => {
190- console . log ( data ) ;
191+ this . fireDataEvent ( "commentAdded" , data ) ;
191192 } ) ;
192193 }
193194 } ,
You can’t perform that action at this time.
0 commit comments