From a22cf5b02241ed212ba4f21695c3ddf12affcc34 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Thu, 5 Dec 2024 18:31:02 +1300 Subject: [PATCH] auto run traceroutes --- src/components/pages/NodeRunTraceRoutePage.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/pages/NodeRunTraceRoutePage.vue b/src/components/pages/NodeRunTraceRoutePage.vue index b8eb768..a851199 100644 --- a/src/components/pages/NodeRunTraceRoutePage.vue +++ b/src/components/pages/NodeRunTraceRoutePage.vue @@ -27,7 +27,7 @@
-
@@ -102,6 +102,9 @@ export default { return; } + // auto run traceroute + this.runTraceRoute(this.node.num); + }, beforeUnmount() { @@ -112,7 +115,7 @@ export default { }, methods: { getNodeLongName: (nodeId) => NodeUtils.getNodeLongName(nodeId), - async runTraceRoute(node) { + async runTraceRoute(nodeId) { // do nothing if already running if(this.isRunningTraceRoute){ @@ -124,7 +127,7 @@ export default { // run trace route try { - await NodeAPI.traceRoute(node.num); + await NodeAPI.traceRoute(nodeId); } catch(e) { // don't care about timeout }