From b9134697dbe6ca29be246634ca603640ec2f6023 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Sun, 17 Nov 2024 19:08:05 +1300 Subject: [PATCH] add button to request node info to node dropdown --- src/components/nodes/NodesList.vue | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/components/nodes/NodesList.vue b/src/components/nodes/NodesList.vue index eea9dc9..f4d154f 100644 --- a/src/components/nodes/NodesList.vue +++ b/src/components/nodes/NodesList.vue @@ -67,7 +67,7 @@ - + @@ -77,6 +77,14 @@ + + + + + + Request Node Info + + @@ -131,6 +139,15 @@ export default { formatUnixSecondsAgo(unixSeconds) { return moment.unix(unixSeconds).fromNow(); }, + onRequestNodeInfo(node) { + + // request node info + NodeAPI.requestNodeInfo(node.num); + + // show alert + alert("A request has been sent to the node to send its info back to us."); + + }, async onDeleteNode(node) { // confirm user wants to remove this node