mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-28 00:20:48 +00:00
update node path before and after loading pages
This commit is contained in:
parent
aba16eb06e
commit
3ea551358c
1 changed files with 6 additions and 1 deletions
|
|
@ -2276,6 +2276,9 @@
|
|||
// update url bar
|
||||
this.nodePagePathUrlInput = this.nodePagePath;
|
||||
|
||||
// update node path
|
||||
this.getNodePath(destinationHash);
|
||||
|
||||
// add to previous page to history if we are not loading that previous page
|
||||
if(addToHistory && previousNodePagePath != null && previousNodePagePath !== this.nodePagePath){
|
||||
this.nodePagePathHistory.push(previousNodePagePath);
|
||||
|
|
@ -2320,6 +2323,9 @@
|
|||
// update page content
|
||||
this.isLoadingNodePage = false;
|
||||
|
||||
// update node path
|
||||
this.getNodePath(destinationHash);
|
||||
|
||||
}, (failureReason) => {
|
||||
|
||||
// do nothing if callback is for a previous request
|
||||
|
|
@ -2576,7 +2582,6 @@
|
|||
onNodeClick: function(node) {
|
||||
this.selectedNode = node;
|
||||
this.tab = "nomadnetwork";
|
||||
this.getNodePath(node.destination_hash);
|
||||
this.loadNodePage(node.destination_hash, "/page/index.mu");
|
||||
},
|
||||
onConversationClick: function(conversation) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue