@@ -132,8 +132,25 @@ qx.Class.define("osparc.dashboard.ListButtonItem", {
132
132
column : osparc . dashboard . ListButtonBase . POS . OPTIONS
133
133
} ) ;
134
134
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" ) ;
136
149
const menuSelectionStack = this . getChildControl ( "menu-selection-stack" ) ;
150
+ menuSelectionStack . addAt ( control , 0 ) ;
151
+ break ;
152
+ }
153
+ case "tick-unselected" : {
137
154
control = new qx . ui . basic . Atom ( ) . set ( {
138
155
appearance : "form-button-outlined" ,
139
156
width : this . self ( ) . MENU_BTN_DIMENSIONS ,
@@ -143,11 +160,11 @@ qx.Class.define("osparc.dashboard.ListButtonItem", {
143
160
control . getContentElement ( ) . setStyles ( {
144
161
"border-radius" : `${ this . self ( ) . MENU_BTN_DIMENSIONS / 2 } px`
145
162
} ) ;
163
+ const menuSelectionStack = this . getChildControl ( "menu-selection-stack" ) ;
146
164
menuSelectionStack . addAt ( control , 1 ) ;
147
165
break ;
148
166
}
149
167
case "tick-selected" : {
150
- const menuSelectionStack = this . getChildControl ( "menu-selection-stack" ) ;
151
168
control = new qx . ui . basic . Image ( "@FontAwesome5Solid/check/12" ) . set ( {
152
169
appearance : "form-button-outlined" ,
153
170
width : this . self ( ) . MENU_BTN_DIMENSIONS ,
@@ -158,25 +175,8 @@ qx.Class.define("osparc.dashboard.ListButtonItem", {
158
175
control . getContentElement ( ) . setStyles ( {
159
176
"border-radius" : `${ this . self ( ) . MENU_BTN_DIMENSIONS / 2 } px`
160
177
} ) ;
161
- menuSelectionStack . addAt ( control , 2 ) ;
162
- break ;
163
- }
164
- case "menu-button" : {
165
178
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 ) ;
180
180
break ;
181
181
}
182
182
}
0 commit comments