Skip to content

Commit

Permalink
show display name and custom display name in network visualiser
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcottle committed Sep 25, 2024
1 parent 000b515 commit 1c1d820
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/frontend/components/network-visualiser/NetworkVisualiser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -322,13 +322,14 @@ export default {
node.label = name;
node.title = [
`Name: ${name}`,
`Name: ${announce.display_name}`,
announce.custom_display_name != null ? `Custom Name: ${announce.custom_display_name}` : null,
`Aspect: ${announce.aspect}`,
`Identity: ${announce.identity_hash}`,
`Destination: ${announce.destination_hash}`,
`Path: ${entry.hops} ${entry.hops === 1 ? 'Hop' : 'Hops'} via ${entry.interface}`,
`Announced At: ${announce.updated_at}`,
].join("\n");
].filter((line) => line != null).join("\n");
}
Expand All @@ -341,13 +342,14 @@ export default {
node.label = name;
node.title = [
`Name: ${name}`,
`Name: ${announce.display_name}`,
announce.custom_display_name != null ? `Custom Name: ${announce.custom_display_name}` : null,
`Aspect: ${announce.aspect}`,
`Identity: ${announce.identity_hash}`,
`Destination: ${announce.destination_hash}`,
`Path: ${entry.hops} ${entry.hops === 1 ? 'Hop' : 'Hops'} via ${entry.interface}`,
`Announced At: ${announce.updated_at}`,
].join("\n");
].filter((line) => line != null).join("\n");
}
Expand Down

0 comments on commit 1c1d820

Please sign in to comment.