File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
services/static-webserver/client/source/class/osparc/dashboard Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -41,10 +41,15 @@ qx.Class.define("osparc.dashboard.NewPlusMenu", {
4141 } ,
4242
4343 statics : {
44- createMenuButton : function ( icon , label , infoText ) {
44+ createMenuButton : function ( icon , title , infoText ) {
45+ title = osparc . utils . Utils . replaceTokens (
46+ title ,
47+ "replace_me_product_name" ,
48+ osparc . store . StaticInfo . getInstance ( ) . getDisplayName ( )
49+ ) ;
4550 const menuButton = new qx . ui . menu . Button ( ) . set ( {
4651 icon : icon || null ,
47- label,
52+ label : title ,
4853 font : "text-16" ,
4954 allowGrowX : true ,
5055 } ) ;
@@ -56,6 +61,11 @@ qx.Class.define("osparc.dashboard.NewPlusMenu", {
5661 marginRight : 20 ,
5762 } ) ;
5863 if ( infoText ) {
64+ infoText = osparc . utils . Utils . replaceTokens (
65+ title ,
66+ "replace_me_product_name" ,
67+ osparc . store . StaticInfo . getInstance ( ) . getDisplayName ( )
68+ ) ;
5969 const infoHint = new osparc . ui . hint . InfoHint ( infoText ) . set ( {
6070 source : osparc . ui . hint . InfoHint . INFO_ICON + "/16" ,
6171 } ) ;
You can’t perform that action at this time.
0 commit comments