From 03e2195582dce4cbc4d5ec2305c246a18c776ac0 Mon Sep 17 00:00:00 2001 From: Soufiane Fariss Date: Fri, 16 Aug 2024 16:49:51 +0200 Subject: [PATCH] add copy rule name and description to VT --- web/explorer/src/components/RuleMatchesTable.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/web/explorer/src/components/RuleMatchesTable.vue b/web/explorer/src/components/RuleMatchesTable.vue index 71daf622b..0c89c926e 100644 --- a/web/explorer/src/components/RuleMatchesTable.vue +++ b/web/explorer/src/components/RuleMatchesTable.vue @@ -152,6 +152,7 @@ {{ item.label }} + @@ -215,6 +216,13 @@ const expandedKeys = ref({}); const menu = ref(); const selectedNode = ref({}); const contextMenuItems = computed(() => [ + { + label: "Copy rule name", + icon: "pi pi-copy", + command: () => { + navigator.clipboard.writeText(selectedNode.value.data?.name); + } + }, { label: "View source", icon: "pi pi-eye", @@ -232,6 +240,7 @@ const contextMenuItems = computed(() => [ label: "Lookup rule in VirusTotal", icon: "vt-icon", target: "_blank", + description: "Requires VirusTotal Premium account", url: createVirusTotalUrl(selectedNode.value.data?.name) } ]);