@@ -132,8 +132,25 @@ qx.Class.define("osparc.dashboard.ListButtonItem", {
132132 column : osparc . dashboard . ListButtonBase . POS . OPTIONS
133133 } ) ;
134134 break ;
135- case "tick-unselected" : {
135+ case "menu-button" : {
136+ control = new qx . ui . form . MenuButton ( ) . set ( {
137+ appearance : "form-button-outlined" ,
138+ padding : [ 0 , 8 ] ,
139+ maxWidth : this . self ( ) . MENU_BTN_DIMENSIONS ,
140+ maxHeight : this . self ( ) . MENU_BTN_DIMENSIONS ,
141+ icon : "@FontAwesome5Solid/ellipsis-v/14" ,
142+ focusable : false
143+ } ) ;
144+ // make it circular
145+ control . getContentElement ( ) . setStyles ( {
146+ "border-radius" : `${ this . self ( ) . MENU_BTN_DIMENSIONS / 2 } px`
147+ } ) ;
148+ osparc . utils . Utils . setIdToWidget ( control , "studyItemMenuButton" ) ;
136149 const menuSelectionStack = this . getChildControl ( "menu-selection-stack" ) ;
150+ menuSelectionStack . addAt ( control , 0 ) ;
151+ break ;
152+ }
153+ case "tick-unselected" : {
137154 control = new qx . ui . basic . Atom ( ) . set ( {
138155 appearance : "form-button-outlined" ,
139156 width : this . self ( ) . MENU_BTN_DIMENSIONS ,
@@ -143,11 +160,11 @@ qx.Class.define("osparc.dashboard.ListButtonItem", {
143160 control . getContentElement ( ) . setStyles ( {
144161 "border-radius" : `${ this . self ( ) . MENU_BTN_DIMENSIONS / 2 } px`
145162 } ) ;
163+ const menuSelectionStack = this . getChildControl ( "menu-selection-stack" ) ;
146164 menuSelectionStack . addAt ( control , 1 ) ;
147165 break ;
148166 }
149167 case "tick-selected" : {
150- const menuSelectionStack = this . getChildControl ( "menu-selection-stack" ) ;
151168 control = new qx . ui . basic . Image ( "@FontAwesome5Solid/check/12" ) . set ( {
152169 appearance : "form-button-outlined" ,
153170 width : this . self ( ) . MENU_BTN_DIMENSIONS ,
@@ -158,25 +175,8 @@ qx.Class.define("osparc.dashboard.ListButtonItem", {
158175 control . getContentElement ( ) . setStyles ( {
159176 "border-radius" : `${ this . self ( ) . MENU_BTN_DIMENSIONS / 2 } px`
160177 } ) ;
161- menuSelectionStack . addAt ( control , 2 ) ;
162- break ;
163- }
164- case "menu-button" : {
165178 const menuSelectionStack = this . getChildControl ( "menu-selection-stack" ) ;
166- control = new qx . ui . form . MenuButton ( ) . set ( {
167- appearance : "form-button-outlined" ,
168- padding : [ 0 , 8 ] ,
169- maxWidth : this . self ( ) . MENU_BTN_DIMENSIONS ,
170- maxHeight : this . self ( ) . MENU_BTN_DIMENSIONS ,
171- icon : "@FontAwesome5Solid/ellipsis-v/14" ,
172- focusable : false
173- } ) ;
174- // make it circular
175- control . getContentElement ( ) . setStyles ( {
176- "border-radius" : `${ this . self ( ) . MENU_BTN_DIMENSIONS / 2 } px`
177- } ) ;
178- osparc . utils . Utils . setIdToWidget ( control , "studyItemMenuButton" ) ;
179- menuSelectionStack . addAt ( control , 0 ) ;
179+ menuSelectionStack . addAt ( control , 2 ) ;
180180 break ;
181181 }
182182 }
0 commit comments