Skip to content

Commit

Permalink
removed nodeIp display if no node ip is available
Browse files Browse the repository at this point in the history
  • Loading branch information
Moritz Wicenec authored and Moritz Wicenec committed Sep 5, 2022
1 parent 474c683 commit 96dd375
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion daliuge-engine/dlg/manager/web/session.html
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,14 @@

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>");
if(!noNode){
d3.select('#nodeDisplay').html("<a href=/?dim_url="+dimUrl+">Node: " + nodeIP + " /</a>");
}else{
d3.select('#nodeDisplay').remove();
}
}

Expand Down

0 comments on commit 96dd375

Please sign in to comment.