Skip to content

Commit

Permalink
fixed two smalll bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Wicenec committed Jul 2, 2021
1 parent 952ca4a commit f3590d1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions daliuge-engine/dlg/manager/web/session.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,15 @@

var dimUrlQuery = new URL(window.location.href);
var dimUrl = dimUrlQuery.searchParams.get("dim_url");
var dimIP = dimUrl.split("//").pop().split(":").shift();
var nodeIP = window.location.href.split("http://").slice(1).join('http://').split(":").shift(1);

if(dimUrl){
if (dimUrl === "null" || !dimUrl){
d3.select('#islandDisplay').remove();
d3.select('#nodeDisplay').remove();
}else if(dimUrl){
var dimIP = dimUrl.split("//").pop().split(":").shift();
var nodeIP = window.location.href.split("http://").slice(1).join('http://').split(":").shift(1);
d3.select('#islandDisplay').html("<a href="+dimUrl+">DIM: " + dimIP+"</a>");
d3.select('#nodeDisplay').text("/ Node: " + nodeIP + " /");
d3.select('#nodeDisplay').text("/ Node: " + nodeIP + " /");
}

function view_as_graph(sessionId, selectedNode, serverUrl) {
Expand Down

0 comments on commit f3590d1

Please sign in to comment.