diff --git a/src/frontend/components/nomadnetwork/NomadNetworkPage.vue b/src/frontend/components/nomadnetwork/NomadNetworkPage.vue
index 8942046..131689f 100644
--- a/src/frontend/components/nomadnetwork/NomadNetworkPage.vue
+++ b/src/frontend/components/nomadnetwork/NomadNetworkPage.vue
@@ -16,7 +16,7 @@
- {{ selectedNode.name }}
+ {{ selectedNode.display_name }}
- {{ selectedNodePath.hops }} {{ selectedNodePath.hops === 1 ? 'hop' : 'hops' }} away
@@ -268,19 +268,7 @@ export default {
}
},
updateNodeFromAnnounce: function(announce) {
- this.nodes[announce.destination_hash] = {
- ...announce,
- // helper property for easily grabbing node name from app data
- name: this.getNodeNameFromAppData(announce.app_data),
- };
- },
- getNodeNameFromAppData: function(appData) {
- try {
- // app data should be node name, and our server provides it base64 encoded
- return Utils.decodeBase64ToUtf8String(appData);
- } catch(e){
- return "Anonymous Node";
- }
+ this.nodes[announce.destination_hash] = announce;
},
async loadNodePage(destinationHash, pagePath, addToHistory = true, loadFromCache = true) {
@@ -498,7 +486,7 @@ export default {
// update selected node, so relative urls work correctly when returned by the new node
this.selectedNode = this.nodes[destinationHash] || {
- name: "Unknown Node",
+ display_name: "Unknown Node",
destination_hash: destinationHash,
};
diff --git a/src/frontend/components/nomadnetwork/NomadNetworkSidebar.vue b/src/frontend/components/nomadnetwork/NomadNetworkSidebar.vue
index 5a4d733..a48400f 100644
--- a/src/frontend/components/nomadnetwork/NomadNetworkSidebar.vue
+++ b/src/frontend/components/nomadnetwork/NomadNetworkSidebar.vue
@@ -19,7 +19,7 @@
-
{{ node.name }}
+
{{ node.display_name }}
{{ formatTimeAgo(node.updated_at) }}
@@ -95,9 +95,9 @@ export default {
searchedNodes() {
return this.nodesOrderedByLatestAnnounce.filter((node) => {
const search = this.nodesSearchTerm.toLowerCase();
- const matchesAppData = node.name.toLowerCase().includes(search);
+ const matchesDisplayName = node.display_name.toLowerCase().includes(search);
const matchesDestinationHash = node.destination_hash.toLowerCase().includes(search);
- return matchesAppData || matchesDestinationHash;
+ return matchesDisplayName || matchesDestinationHash;
});
},
},