File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
services/static-webserver/client/source/class/osparc/form/tag Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -111,13 +111,6 @@ qx.Class.define("osparc.form.tag.TagItem", {
111111 alignY : "middle" ,
112112 cursor : "pointer" ,
113113 } ) ;
114- this . addListener ( "changeAccessRights" , e => {
115- const accessRights = e . getData ( ) ;
116- console . log ( "changeAccessRights" , accessRights ) ;
117- if ( accessRights ) {
118- osparc . dashboard . CardBase . populateShareIcon ( control , accessRights ) ;
119- }
120- } , this ) ;
121114 osparc . dashboard . CardBase . populateShareIcon ( control , this . getAccessRights ( ) )
122115 control . addListener ( "tap" , ( ) => this . __openAccessRights ( ) , this ) ;
123116 break ;
@@ -218,6 +211,14 @@ qx.Class.define("osparc.form.tag.TagItem", {
218211 const permissionsView = new osparc . share . CollaboratorsTag ( this . getTag ( ) ) ;
219212 const title = this . tr ( "Share Tag" ) ;
220213 osparc . ui . window . Window . popUpInWindow ( permissionsView , title , 600 , 600 ) ;
214+
215+ permissionsView . addListener ( "updateAccessRights" , ( ) => {
216+ const accessRights = this . getTag ( ) . getAccessRights ( ) ;
217+ if ( accessRights ) {
218+ const sharedIcon = this . getChildControl ( "shared-icon" ) ;
219+ osparc . dashboard . CardBase . populateShareIcon ( sharedIcon , accessRights ) ;
220+ }
221+ } , this ) ;
221222 } ,
222223
223224 /**
You can’t perform that action at this time.
0 commit comments