Skip to content

Commit

Permalink
add support for custom display names in network visualiser
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcottle committed Sep 25, 2024
1 parent 0611bca commit 000b515
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ export default {
if(announce.aspect === "lxmf.delivery"){
const name = announce.display_name;
const name = announce.custom_display_name ?? announce.display_name;
node.shape = "circularImage";
node.image = entry.hops === 1 ? "/assets/images/network-visualiser/user_1hop.png" : "/assets/images/network-visualiser/user.png";
Expand All @@ -334,7 +334,7 @@ export default {
if(announce.aspect === "nomadnetwork.node"){
const name = announce.display_name;
const name = announce.custom_display_name ?? announce.display_name;
node.shape = "circularImage";
node.image = entry.hops === 1 ? "/assets/images/network-visualiser/server_1hop.png" : "/assets/images/network-visualiser/server.png";
Expand Down

0 comments on commit 000b515

Please sign in to comment.