Skip to content

Commit 0c477c3

Browse files
committed
replace_me_product_name
1 parent c4200bc commit 0c477c3

File tree

1 file changed

+12
-2
lines changed
  • services/static-webserver/client/source/class/osparc/dashboard

1 file changed

+12
-2
lines changed

services/static-webserver/client/source/class/osparc/dashboard/NewPlusMenu.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)