mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-28 00:20:48 +00:00
update router url when a new nomadnetwork page is loaded
This commit is contained in:
parent
6af4e53de4
commit
b215c4ac31
1 changed files with 8 additions and 8 deletions
|
|
@ -344,6 +344,14 @@ export default {
|
|||
},
|
||||
async loadNodePage(destinationHash, pagePath, fieldData = null, addToHistory = true, loadFromCache = true) {
|
||||
|
||||
// update current route
|
||||
this.$router.replace({
|
||||
name: "nomadnetwork",
|
||||
params: {
|
||||
destinationHash: destinationHash,
|
||||
},
|
||||
});
|
||||
|
||||
// get new sequence for this page load
|
||||
const seq = ++this.nodePageRequestSequence;
|
||||
|
||||
|
|
@ -677,14 +685,6 @@ export default {
|
|||
// update selected node
|
||||
this.selectedNode = node;
|
||||
|
||||
// update current route
|
||||
this.$router.replace({
|
||||
name: "nomadnetwork",
|
||||
params: {
|
||||
destinationHash: node.destination_hash,
|
||||
},
|
||||
});
|
||||
|
||||
// load default node page
|
||||
this.loadNodePage(node.destination_hash, this.defaultNodePagePath);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue