Skip to content

Commit b70456c

Browse files
committed
requestAccountLink
1 parent be3a16b commit b70456c

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

services/static-webserver/client/source/class/osparc/store/Support.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,16 @@ qx.Class.define("osparc.store.Support", {
149149
return textLink;
150150
},
151151

152+
requestAccountLink: function(centered = true) {
153+
const color = qx.theme.manager.Color.getInstance().resolve("text");
154+
const link = window.location.origin + "/request-account";
155+
let textLink = `<a href="${link}" style='color: ${color}' target='_blank'>Request Account</a>`;
156+
if (centered) {
157+
textLink = `<center>${textLink}</center>`
158+
}
159+
return textLink;
160+
},
161+
152162
getMailToLabel: function(email, subject) {
153163
const mailto = new qx.ui.basic.Label(this.mailToLink(email, subject, false)).set({
154164
font: "text-14",

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -650,9 +650,9 @@ qx.Class.define("osparc.utils.Utils", {
650650
if (osparc.product.Utils.getCreateAccountAction() === "REQUEST_ACCOUNT_FORM") {
651651
// if the product is configured to show a form to request an account,
652652
// 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:");
653+
msg += qx.locale.Manager.tr(", please request an account in the following link:");
654654
msg += "</br>";
655-
msg += mailto;
655+
msg += osparc.store.Support.requestAccountLink();
656656
return msg;
657657
}
658658
msg += qx.locale.Manager.tr(", please send us an e-mail to create an account:");

0 commit comments

Comments
 (0)