File tree Expand file tree Collapse file tree 1 file changed +15
-7
lines changed
services/static-webserver/client/source/class/osparc/dashboard Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -102,10 +102,16 @@ qx.Class.define("osparc.dashboard.WorkspaceButtonItem", {
102102 let layout ;
103103 switch ( id ) {
104104 case "shared-icon" :
105- control = new qx . ui . basic . Image ( ) . set ( {
106- alignY : "middle" ,
107- allowGrowX : false ,
108- allowShrinkX : false
105+ control = new osparc . dashboard . FolderWithSharedIcon ( ) . set ( {
106+ anonymous : true ,
107+ maxHeight : 20 ,
108+ padding : 0
109+ } ) ;
110+ // make it smaller
111+ control . getChildControl ( "folder-icon" ) . setSource ( "@FontAwesome5Solid/folder/22" ) ;
112+ control . getChildControl ( "shared-icon" ) . setLayoutProperties ( {
113+ bottom : 1 ,
114+ left : 1
109115 } ) ;
110116 layout = this . getChildControl ( "header" ) ;
111117 layout . addAt ( control , osparc . dashboard . WorkspaceButtonBase . HPOS . SHARED ) ;
@@ -210,12 +216,14 @@ qx.Class.define("osparc.dashboard.WorkspaceButtonItem", {
210216
211217 __applyAccessRights : function ( value ) {
212218 if ( value && Object . keys ( value ) . length ) {
213- const shareIcon = this . getChildControl ( "shared-icon" ) ;
214- shareIcon . addListener ( "tap" , e => {
219+ const icon = this . getChildControl ( "shared-icon" ) ;
220+ icon . addListener ( "tap" , e => {
221+ // OM check this
215222 e . stopPropagation ( ) ;
216223 this . __openShareWith ( ) ;
217224 } , this ) ;
218- shareIcon . addListener ( "pointerdown" , e => e . stopPropagation ( ) ) ;
225+ icon . addListener ( "pointerdown" , e => e . stopPropagation ( ) ) ;
226+ const shareIcon = this . getChildControl ( "shared-icon" ) . getChildControl ( "shared-icon" ) ;
219227 osparc . dashboard . CardBase . populateShareIcon ( shareIcon , value ) ;
220228 }
221229 } ,
You can’t perform that action at this time.
0 commit comments