Skip to content

Commit aa5ec87

Browse files
committed
Send us an email
1 parent fc5ab09 commit aa5ec87

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

services/static-webserver/client/source/class/osparc/product/AboutProduct.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,21 @@ qx.Class.define("osparc.product.AboutProduct", {
149149
For more information about TIP, please visit ${osparc.utils.Utils.createHTMLLink("itis.swiss", "href='https://itis.swiss/tools-and-systems/ti-planning/overview")}.
150150
<br><br>
151151
To review license agreements, click ${osparc.utils.Utils.createHTMLLink("here", licenseUrl)}.
152+
<br><br>
153+
Send us an email ${this.__getMailTo()}
152154
`);
153155

154156
const label = osparc.product.quickStart.Utils.createLabel(text);
155157
this.add(label);
156158
});
157159
},
158160

161+
__getMailTo: function() {
162+
const supportEmail = osparc.store.VendorInfo.getInstance().getSupportEmail();
163+
const productName = osparc.store.StaticInfo.getInstance().getDisplayName();
164+
return osparc.store.Support.mailToText(supportEmail, "Support " + productName, false);
165+
},
166+
159167
__addCopyright: function() {
160168
const copyrightLink = new osparc.ui.basic.LinkLabel().set({
161169
font: "link-label-14"
@@ -168,6 +176,6 @@ qx.Class.define("osparc.product.AboutProduct", {
168176
});
169177
}
170178
this.add(copyrightLink);
171-
}
179+
},
172180
}
173181
});

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,12 @@ qx.Class.define("osparc.store.Support", {
135135
});
136136
},
137137

138-
mailToText: function(email, subject) {
138+
mailToText: function(email, subject, centered = true) {
139139
const color = qx.theme.manager.Color.getInstance().resolve("text");
140-
const textLink = `<center><a href="mailto:${email}?subject=${subject}" style='color: ${color}' target='_blank'>${email}</a>&nbsp&nbsp<center>`;
140+
let textLink = `<a href="mailto:${email}?subject=${subject}" style='color: ${color}' target='_blank'>${email}</a>&nbsp&nbsp`;
141+
if (centered) {
142+
textLink = `<center>${textLink}</center>`
143+
}
141144
return textLink;
142145
},
143146

0 commit comments

Comments
 (0)