Skip to content

Commit be3a16b

Browse files
committed
refactor
1 parent 2de3feb commit be3a16b

File tree

1 file changed

+12
-4
lines changed
  • services/static-webserver/client/source/class/osparc/utils

1 file changed

+12
-4
lines changed

services/static-webserver/client/source/class/osparc/utils/Utils.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -644,13 +644,21 @@ qx.Class.define("osparc.utils.Utils", {
644644
const productName = osparc.store.StaticInfo.getInstance().getDisplayName();
645645
const manuals = osparc.store.Support.getManuals();
646646
const manualLink = (manuals && manuals.length) ? manuals[0].url : "";
647-
const supportEmail = osparc.store.VendorInfo.getInstance().getSupportEmail();
648-
const mailto = osparc.store.Support.mailToLink(supportEmail, "Request Account " + productName);
649647
let msg = "";
650-
msg += qx.locale.Manager.tr("To use all ");
651-
msg += this.createHTMLLink(productName + " features", manualLink);
648+
msg += qx.locale.Manager.tr("To use all ") + this.createHTMLLink(productName + " features", manualLink);
649+
650+
if (osparc.product.Utils.getCreateAccountAction() === "REQUEST_ACCOUNT_FORM") {
651+
// if the product is configured to show a form to request an account,
652+
// then show a link to it in the message
653+
msg += qx.locale.Manager.tr(", please send us an e-mail to create an account:");
654+
msg += "</br>";
655+
msg += mailto;
656+
return msg;
657+
}
652658
msg += qx.locale.Manager.tr(", please send us an e-mail to create an account:");
653659
msg += "</br>";
660+
const supportEmail = osparc.store.VendorInfo.getInstance().getSupportEmail();
661+
const mailto = osparc.store.Support.mailToLink(supportEmail, "Request Account " + productName);
654662
msg += mailto;
655663
return msg;
656664
},

0 commit comments

Comments
 (0)