From 000b51544215e3719f808abd56d6781ec4b37658 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Thu, 26 Sep 2024 00:40:31 +1200 Subject: [PATCH] add support for custom display names in network visualiser --- .../components/network-visualiser/NetworkVisualiser.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/components/network-visualiser/NetworkVisualiser.vue b/src/frontend/components/network-visualiser/NetworkVisualiser.vue index 92b8772..3b25371 100644 --- a/src/frontend/components/network-visualiser/NetworkVisualiser.vue +++ b/src/frontend/components/network-visualiser/NetworkVisualiser.vue @@ -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"; @@ -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";