@@ -49,7 +49,7 @@ qx.Class.define("osparc.dashboard.ResourceBrowserFilter", {
4949 __resourceType : null ,
5050 __workspacesAndFoldersTree : null ,
5151 __templatesButton : null ,
52- __publishedButton : null ,
52+ __publicProjectsButton : null ,
5353 __trashButton : null ,
5454 __sharedWithButtons : null ,
5555 __tagButtons : null ,
@@ -61,7 +61,7 @@ qx.Class.define("osparc.dashboard.ResourceBrowserFilter", {
6161 case "study" : {
6262 this . _add ( this . __createWorkspacesAndFoldersTree ( ) ) ;
6363 this . _add ( this . __createTemplates ( ) ) ;
64- this . _add ( this . __createPublished ( ) ) ;
64+ this . _add ( this . __createPublicProjects ( ) ) ;
6565 this . _add ( this . __createTrashBin ( ) ) ;
6666 this . _add ( filtersSpacer ) ;
6767 const scrollView = new qx . ui . container . Scroll ( ) ;
@@ -96,6 +96,8 @@ qx.Class.define("osparc.dashboard.ResourceBrowserFilter", {
9696 } ) ;
9797 this . __workspacesAndFoldersTree . contextChanged ( context ) ;
9898
99+ this . __templatesButton . setValue ( context === "templates" ) ;
100+ this . __publicProjectsButton . setValue ( context === "public" ) ;
99101 this . __trashButton . setValue ( context === "trash" ) ;
100102 } ,
101103
@@ -139,21 +141,21 @@ qx.Class.define("osparc.dashboard.ResourceBrowserFilter", {
139141 return templatesButton ;
140142 } ,
141143
142- __createPublished : function ( ) {
143- const publishedButton = this . __publishedButton = new qx . ui . toolbar . RadioButton ( ) . set ( {
144+ __createPublicProjects : function ( ) {
145+ const publicProjectsButton = this . __publicProjectsButton = new qx . ui . toolbar . RadioButton ( ) . set ( {
144146 value : false ,
145147 appearance : "filter-toggle-button" ,
146148 label : this . tr ( "Public Projects" ) ,
147149 icon : "@FontAwesome5Solid/globe/16" ,
148150 paddingLeft : 10 , // align it with the context
149151 } ) ;
150- publishedButton . addListener ( "changeValue" , e => {
152+ publicProjectsButton . addListener ( "changeValue" , e => {
151153 const templatesEnabled = e . getData ( ) ;
152154 if ( templatesEnabled ) {
153155 this . fireEvent ( "publicContext" ) ;
154156 }
155157 } ) ;
156- return publishedButton ;
158+ return publicProjectsButton ;
157159 } ,
158160
159161 /* TRASH BIN */
0 commit comments