2222qx . Class . define ( "osparc.file.FolderViewer" , {
2323 extend : qx . ui . core . Widget ,
2424
25- construct : function ( allowMultiselection = true ) {
25+ construct : function ( allowMultiSelection = true ) {
2626 this . base ( arguments ) ;
2727
2828 this . _setLayout ( new qx . ui . layout . VBox ( 10 ) ) ;
@@ -33,11 +33,11 @@ qx.Class.define("osparc.file.FolderViewer", {
3333 folderUpBtn . addListener ( "execute" , ( ) => this . fireDataEvent ( "folderUp" , this . getFolder ( ) ) , this ) ;
3434 this . getChildControl ( "folder-path" ) ;
3535 let multiSelectButton = null ;
36- if ( allowMultiselection ) {
36+ if ( allowMultiSelection ) {
3737 multiSelectButton = this . getChildControl ( "multi-select-button" ) ;
3838 }
39- const gridViewButton = this . getChildControl ( "view-options-icons" ) ;
4039 const listViewButton = this . getChildControl ( "view-options-list" ) ;
40+ const gridViewButton = this . getChildControl ( "view-options-icons" ) ;
4141 const folderContent = this . getChildControl ( "folder-content" ) ;
4242 const selectedFileLayout = this . getChildControl ( "selected-file-layout" ) ;
4343
@@ -51,7 +51,7 @@ qx.Class.define("osparc.file.FolderViewer", {
5151
5252 this . bind ( "folder" , folderContent , "folder" ) ;
5353
54- if ( allowMultiselection ) {
54+ if ( allowMultiSelection ) {
5555 multiSelectButton . bind ( "value" , folderContent , "multiSelect" ) ;
5656 folderContent . bind ( "multiSelect" , multiSelectButton , "value" ) ;
5757 multiSelectButton . addListener ( "changeValue" , e => {
@@ -142,20 +142,20 @@ qx.Class.define("osparc.file.FolderViewer", {
142142 header . addAt ( control , 2 ) ;
143143 break ;
144144 }
145- case "view-options-rgroup " :
145+ case "view-options-radio-group " :
146146 control = new qx . ui . form . RadioGroup ( ) ;
147147 break ;
148148 case "view-options-icons" : {
149149 control = new qx . ui . form . ToggleButton ( null , "@MaterialIcons/apps/18" ) ;
150- const group = this . getChildControl ( "view-options-rgroup " ) ;
150+ const group = this . getChildControl ( "view-options-radio-group " ) ;
151151 group . add ( control ) ;
152152 const header = this . getChildControl ( "header" ) ;
153153 header . addAt ( control , 3 ) ;
154154 break ;
155155 }
156156 case "view-options-list" : {
157157 control = new qx . ui . form . ToggleButton ( null , "@MaterialIcons/reorder/18" ) ;
158- const group = this . getChildControl ( "view-options-rgroup " ) ;
158+ const group = this . getChildControl ( "view-options-radio-group " ) ;
159159 group . add ( control ) ;
160160 const header = this . getChildControl ( "header" ) ;
161161 header . addAt ( control , 4 ) ;
0 commit comments