File tree Expand file tree Collapse file tree 2 files changed +10
-16
lines changed
services/static-webserver/client/source/class/osparc Expand file tree Collapse file tree 2 files changed +10
-16
lines changed Original file line number Diff line number Diff line change @@ -45,33 +45,25 @@ qx.Class.define("osparc.dashboard.SearchBarFilter", {
4545 HEIGHT : 36 ,
4646
4747 getSharedWithOptions : function ( resourceType ) {
48- if ( resourceType === "service" ) {
49- resourceType = "app" ;
50- }
48+ const resourceAlias = osparc . product . Utils . resourceTypeToAlias ( resourceType , {
49+ firstUpperCase : true ,
50+ plural : true
51+ } ) ;
5152 return [ {
5253 id : "show-all" ,
53- label : qx . locale . Manager . tr ( "All" ) + " " + osparc . product . Utils . resourceTypeToAlias ( resourceType , {
54- firstUpperCase : true ,
55- plural : true
56- } ) ,
54+ label : qx . locale . Manager . tr ( "All" ) + " " + resourceAlias ,
5755 icon : "@FontAwesome5Solid/home/20"
5856 } , {
5957 id : "my-resources" ,
60- label : qx . locale . Manager . tr ( "My" ) + " " + osparc . product . Utils . resourceTypeToAlias ( resourceType , {
61- firstUpperCase : true ,
62- plural : true
63- } ) ,
58+ label : qx . locale . Manager . tr ( "My" ) + " " + resourceAlias ,
6459 icon : "@FontAwesome5Solid/user/20"
6560 } , {
6661 id : "shared-with-me" ,
6762 label : qx . locale . Manager . tr ( "Shared with Me" ) ,
6863 icon : "@FontAwesome5Solid/users/20"
6964 } , {
7065 id : "shared-with-everyone" ,
71- label : qx . locale . Manager . tr ( "Public" ) + " " + osparc . product . Utils . resourceTypeToAlias ( resourceType , {
72- firstUpperCase : true ,
73- plural : true
74- } ) ,
66+ label : qx . locale . Manager . tr ( "Public" ) + " " + resourceAlias ,
7567 icon : "@FontAwesome5Solid/globe/20"
7668 } ] ;
7769 }
Original file line number Diff line number Diff line change @@ -139,7 +139,9 @@ qx.Class.define("osparc.product.Utils", {
139139 case "template" :
140140 return this . getTemplateAlias ( options ) ;
141141 case "service" :
142- return this . getServiceAlias ( options ) ;
142+ // return this.getServiceAlias(options);
143+ // Do not use this alias anymore, use "app" instead
144+ return this . getAppAlias ( options ) ;
143145 case "hypertool" :
144146 return this . getHypertoolAlias ( options ) ;
145147 case "app" :
You can’t perform that action at this time.
0 commit comments