From 24ae7992a99b2e931adcccfa6ae7a7a7f8fc8674 Mon Sep 17 00:00:00 2001
From: Georgi Nikolov <gnnikolov87@gmail.com>
Date: Thu, 14 Oct 2021 21:20:04 +0200
Subject: [PATCH] Added a functionality for redirecting to the evidence inspect
 page when clicking on a specific bubble in the bubble graph

---
 resources/views/app/bubble.blade.php | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/resources/views/app/bubble.blade.php b/resources/views/app/bubble.blade.php
index 750a8f7..05c64f8 100644
--- a/resources/views/app/bubble.blade.php
+++ b/resources/views/app/bubble.blade.php
@@ -38,7 +38,10 @@
             .attr("id", d => (d.leafUid = d.data.id))
             .attr("r", d => d.r)
             .attr("fill-opacity", 0.7)
-            .attr("fill", d => colors(d.data.score));
+            .attr("fill", d => colors(d.data.score))
+            .on("click", function(d) {
+                window.location =  "/app/evidence/" + d.srcElement.id;
+            });
 
         leaf.append("clipPath")
             .attr("id", d => (d.clipUid = "clip-" + d.data.id))
-- 
GitLab