File tree Expand file tree Collapse file tree 3 files changed +3
-26
lines changed
services/static-webserver/client/source/class/osparc/share Expand file tree Collapse file tree 3 files changed +3
-26
lines changed Original file line number Diff line number Diff line change @@ -35,11 +35,7 @@ qx.Class.define("osparc.share.Collaborators", {
3535
3636 this . __buildLayout ( ) ;
3737
38- this . __potentialCollaborators = { } ;
39- initCollabs . forEach ( initCollab => {
40- this . __potentialCollaborators [ initCollab . getGroupId ( ) ] = initCollab ;
41- } ) ;
42- this . __getCollaborators ( ) ;
38+ this . _reloadCollaboratorsList ( ) ;
4339 } ,
4440
4541 events : {
@@ -158,7 +154,6 @@ qx.Class.define("osparc.share.Collaborators", {
158154 _resourceType : null ,
159155 __addCollaborators : null ,
160156 __collaboratorsModel : null ,
161- __potentialCollaborators : null ,
162157
163158 _createChildControlImpl : function ( id ) {
164159 let control ;
@@ -340,12 +335,6 @@ qx.Class.define("osparc.share.Collaborators", {
340335 return vBox ;
341336 } ,
342337
343- __getCollaborators : function ( ) {
344- const potentialCollaborators = osparc . store . Groups . getInstance ( ) . getPotentialCollaborators ( ) ;
345- this . __potentialCollaborators = Object . assign ( this . __potentialCollaborators , potentialCollaborators ) ;
346- this . _reloadCollaboratorsList ( ) ;
347- } ,
348-
349338 __getLeaveStudyButton : function ( ) {
350339 const myGid = osparc . auth . Data . getInstance ( ) . getGroupId ( ) ;
351340 if (
Original file line number Diff line number Diff line change @@ -34,12 +34,7 @@ qx.Class.define("osparc.share.CollaboratorsService", {
3434 this . _resourceType = "service" ;
3535 const serviceDataCopy = osparc . utils . Utils . deepCloneObject ( serviceData ) ;
3636
37- const initCollabs = [ ] ;
38- const groupsStore = osparc . store . Groups . getInstance ( ) ;
39- const everyoneProductGroup = groupsStore . getEveryoneProductGroup ( ) ;
40- initCollabs . push ( everyoneProductGroup ) ;
41-
42- this . base ( arguments , serviceDataCopy , initCollabs ) ;
37+ this . base ( arguments , serviceDataCopy ) ;
4338 } ,
4439
4540 statics : {
Original file line number Diff line number Diff line change @@ -35,14 +35,7 @@ qx.Class.define("osparc.share.CollaboratorsStudy", {
3535 this . _resourceType = studyData [ "resourceType" ] ; // study or template
3636 const studyDataCopy = osparc . data . model . Study . deepCloneStudyObject ( studyData ) ;
3737
38- const initCollabs = [ ] ;
39- if ( osparc . data . Permissions . getInstance ( ) . canDo ( "study.everyone.share" ) ) {
40- const groupsStore = osparc . store . Groups . getInstance ( ) ;
41- const everyoneProductGroup = groupsStore . getEveryoneProductGroup ( ) ;
42- initCollabs . push ( everyoneProductGroup ) ;
43- }
44-
45- this . base ( arguments , studyDataCopy , initCollabs ) ;
38+ this . base ( arguments , studyDataCopy ) ;
4639 } ,
4740
4841 statics : {
You can’t perform that action at this time.
0 commit comments