Skip to content

Commit 3ee6e82

Browse files
committed
minor fixes
1 parent 2d59afa commit 3ee6e82

File tree

1 file changed

+5
-10
lines changed
  • services/static-webserver/client/source/class/osparc/auth/ui

1 file changed

+5
-10
lines changed

services/static-webserver/client/source/class/osparc/auth/ui/LoginView.js

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,7 @@ qx.Class.define("osparc.auth.ui.LoginView", {
9393
createAccountBtn.setLabel(this.tr("Request Account"));
9494
}
9595
createAccountBtn.addListener("execute", () => {
96-
// "172.29.100.6.nip.io"
97-
// "tip.itis.swiss"
98-
if (window.location.hostname === "172.29.100.6.nip.io") {
96+
if (window.location.hostname === "tip.itis.swiss") {
9997
this.__openTIPITISSWISSPhaseOutDialog();
10098
} else if (createAccountAction === "REGISTER") {
10199
this.fireEvent("toRegister");
@@ -165,19 +163,16 @@ qx.Class.define("osparc.auth.ui.LoginView", {
165163
},
166164

167165
__openTIPITISSWISSPhaseOutDialog: function() {
168-
const createAccountWindow = new osparc.ui.window.Dialog("Create Account").set({
166+
const createAccountWindow = new osparc.ui.window.Dialog("Request Account").set({
169167
maxWidth: 380
170168
});
171-
const vendor = osparc.store.VendorInfo.getInstance().getVendor();
172169
let message = "This version of the planning tool will be phased out soon and no longer accepts new users.";
173170
message += "<br>";
174-
const tipLiteLabel = new osparc.ui.basic.LinkLabel("TIP.lite", "https://tip-lite.science/");
175-
const tipLabel = new osparc.ui.basic.LinkLabel("TIP", "https://tip.science/");
176-
const hereLabel = new osparc.ui.basic.LinkLabel("here", "https://itis.swiss/tools-and-systems/ti-planning/overview/");
171+
const tipLiteLabel = osparc.utils.Utils.createHTMLLink("TIP.lite", "https://tip-lite.science/");
172+
const tipLabel = osparc.utils.Utils.createHTMLLink("TIP", "https://tip.science/");
173+
const hereLabel = osparc.utils.Utils.createHTMLLink("here", "https://itis.swiss/tools-and-systems/ti-planning/overview/");
177174
message += `Please visit ${tipLiteLabel} or ${tipLabel} instead. See ${hereLabel} for more information.`;
178175
createAccountWindow.setMessage(message);
179-
const linkLabel = new osparc.ui.basic.LinkLabel(vendor["invitation_url"], vendor["invitation_url"]);
180-
createAccountWindow.addWidget(linkLabel);
181176
createAccountWindow.center();
182177
createAccountWindow.open();
183178
},

0 commit comments

Comments
 (0)