@@ -92,12 +92,11 @@ qx.Class.define("osparc.editor.AnnotationNoteCreator", {
9292 recipientsManager . setCaption ( "Recipient" ) ;
9393 recipientsManager . getActionButton ( ) . setLabel ( this . tr ( "Add" ) ) ;
9494 recipientsManager . addListener ( "addCollaborators" , e => {
95- const {
96- selectedGids,
97- } = e . getData ( ) ;
95+ const data = e . getData ( ) ;
96+ const recipientGids = data [ "selectedGids" ] ;
9897
99- if ( selectedGids && selectedGids . length ) {
100- const recipientGid = parseInt ( selectedGids [ 0 ] ) ;
98+ if ( recipientGids && recipientGids . length ) {
99+ const recipientGid = parseInt ( recipientGids [ 0 ] ) ;
101100 this . __setRecipientGid ( recipientGid ) ;
102101 recipientsManager . close ( ) ;
103102
@@ -107,11 +106,14 @@ qx.Class.define("osparc.editor.AnnotationNoteCreator", {
107106 proposeSharing . push ( recipientGid ) ;
108107 }
109108 if ( proposeSharing . length ) {
110- console . log ( "share?" , proposeSharing ) ;
111- const collaboratorsManager = new osparc . share . NewCollaboratorsManager ( currentStudy , false ) ;
109+ const collaboratorsManager = new osparc . share . NewCollaboratorsManager ( currentStudy , false , true , proposeSharing ) ;
112110 collaboratorsManager . addListener ( "addCollaborators" , ev => {
113- const data = ev . getData ( ) ;
114- console . log ( "share asd" , data ) ;
111+ const {
112+ selectedGids,
113+ newAccessRights,
114+ } = e . getData ( ) ;
115+ console . log ( "addCollaborators" , selectedGids , newAccessRights ) ;
116+ // this._addEditors(selectedGids, newAccessRights);
115117 collaboratorsManager . close ( ) ;
116118 } ) ;
117119 }
0 commit comments