Skip to content

Commit

Permalink
Add DS namespace to params
Browse files Browse the repository at this point in the history
Signed-off-by: Artem Zatsarynnyi <[email protected]>
  • Loading branch information
azatsarynnyy committed Feb 20, 2024
1 parent e0efaeb commit 0cd3d7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions status-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ const app = express();
app.set('view engine', 'ejs');
app.get('/', async function (req, res) {
const invitationLink = (await joinLink).replaceAll('&', '_');
const dwID = process.env.DEVWORKSPACE_ID;
const dwNamespace = process.env.DEVWORKSPACE_NAMESPACE;
const dwName = process.env.DEVWORKSPACE_NAME;
const clusterConsoleURL = process.env.CLUSTER_CONSOLE_URL;
const podName = process.env.HOSTNAME;
// render the page from EJS template
res.render('status', { dwID, dwName, clusterConsoleURL, podName, invitationLink });
res.render('status', { dwNamespace, dwName, clusterConsoleURL, podName, invitationLink });
});

// server setup
Expand Down
2 changes: 1 addition & 1 deletion status-app/views/status.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<script>
(function () {
window.onload = function () {
const gatewayLink = "jetbrains-gateway://connect#type=devspaces&dwID=<%= dwID %>&dwName=<%= dwName %>&link=<%= invitationLink %>"
const gatewayLink = "jetbrains-gateway://connect#type=devspaces&dwNamespace=<%= dwNamespace %>&dwName=<%= dwName %>&link=<%= invitationLink %>"
console.log("Opening Gateway app: " + gatewayLink);
window.open(gatewayLink, "_self");
};
Expand Down

0 comments on commit 0cd3d7f

Please sign in to comment.